TelnetCommands.mesa
Copyright Ó 1989, 1991 by Xerox Corporation. All rights reserved.
Wes Irish, June 16, 1989 10:24:36 am PDT
Definitions of Telnet commands. Taken from RFC 854.
TelnetCommands:
CEDAR
DEFINITIONS = {
The following are the defined Telnet commands. Note that these codes and code sequences have the indicated meaning only when immediately preceded by an IAC.
FYI: I wanted to use uppercase identifiers to be consistent with the RFC but couldn't since DO is a reserved keyword! (I wanted to be consistent, at least within this interface.)
iac: CHAR = '\377; -- 255 Command Escape Character / Data Byte 377B (255) "command".
se: CHAR = '\360; -- 240 End of subnegotiation parameters
nop: CHAR = '\361; -- 241 No operation
dm: CHAR = '\362; -- 242; Data Mark. The data stream portion of a Synch. This should always be accompanied by a TCP Urgent notification.
brk: CHAR = '\363; -- 243 NVT character BRK (Break).
ip: CHAR = '\364; -- 244 The function IP (Interrupt Process).
ao: CHAR = '\365; -- 245 The function AO (Abort Output).
ayt: CHAR = '\366; -- 246 The function AYT (Are You There).
ec: CHAR = '\367; -- 247 The function EC (Erase CHARacter).
el: CHAR = '\370; -- 248 The function EL (Erase Line).
ga: CHAR = '\371; -- 249 The GA (Go Ahead) signal.
sb: CHAR = '\372; -- 250 Indicates that what follows is subnegotiation of the indicated option.
The following commands are all additionally followed by a one byte option code:
will: CHAR = '\373; -- 251 Indicates the desire to begin performing, or confirmation that you are now performing, the indicated option.
wont: CHAR = '\374; -- 252 Indicates the refusal to perform, or continue performing, the indicated option.
do: CHAR = '\375; -- 253 Indicates the request that the other party perform, or confirmation that you are expecting the other party to perform, the indicated option.
dont: CHAR = '\376; -- 254 Indicates the demand that the other party stop performing, or confirmation that you are no longer expecting the other party to perform, the indicated option.
}.