[Patches] [ python-Patches-723364 ] terminal type option subnegotiation in telnetlib

SourceForge.net noreply at sourceforge.net
Sat Sep 20 07:22:29 EDT 2003


Patches item #723364, was opened at 2003-04-17 23:13
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=723364&group_id=5470

Category: Library (Lib)
Group: Python 2.2.x
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Willeke (willeke)
>Assigned to: Martin v. Löwis (loewis)
Summary: terminal type option subnegotiation in telnetlib

Initial Comment:
The attached patch makes it possible for an option

negotiation callback to subnegotiate the terminal type

option (per RFC 1091).



The patch does the following: 



  * defines the SB and SE commands (per RFC 854)

  * defines QUAL_IS and QUAL_SEND (adapted from

<arpa/telnet.h>)

  * passes SB ... SE to callback in process_rawq()



A simple callback would specify the terminal type as

follows:



  * respond to IAC DO TTYPE with IAC WILL TTYPE

  * respond to IAC SB TTYPE QUAL_SEND IAC SE with IAC

SB TTYPE QUAL_IS 'vt100' IAC SE

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=723364&group_id=5470



More information about the Patches mailing list