Skip to content

Commit 574deae

Browse files
committed
Patch #625823: Add symbolic constants for more commands.
1 parent 2eba52f commit 574deae

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

Lib/telnetlib.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,19 @@
5353
WONT = chr(252)
5454
WILL = chr(251)
5555
theNULL = chr(0)
56-
SB = chr(250)
57-
SE = chr(240)
56+
57+
SE = chr(240) # Subnegotiation End
58+
NOP = chr(241) # No Operation
59+
DM = chr(242) # Data Mark
60+
BRK = chr(243) # Break
61+
IP = chr(244) # Interrupt process
62+
AO = chr(245) # Abort output
63+
AYT = chr(246) # Are You There
64+
EC = chr(247) # Erase Character
65+
EL = chr(248) # Erase Line
66+
GA = chr(249) # Go Ahead
67+
SB = chr(250) # Subnegotiation Begin
68+
5869

5970
# Telnet protocol options code (don't change)
6071
# These ones all come from arpa/telnet.h

0 commit comments

Comments
 (0)