2. Command meanings
IAC WILL RCTE
The sender of this command REQUESTS or AGREES to use the RCTE option, and will send instructions for controlling the other side's terminal printer.
IAC WON'T RCTE
The sender of this option REFUSES to send instructions for controlling the other side's terminal printer.
IAC DO RCTE
The sender REQUEST or AGREES to have the other side (sender of WILL RCTE) issue commands which will control his (sender of the DO) output to the terminal printer.
IAC DON'T RCTE
The sender of this command REFUSES to allow the other side to control his (sender of DON'T) terminal printer.
IAC SB RCTE <cmd> [BC1 BC2] [TC1 TC2] IAC SE
where:
<cmd> is one 8-bit byte having the following flags (bits are counted from the right):
Bit Meaning
0 0 = Ignore all other bits in this byte and
repeat the last <cmd> that was sent. Equals
a 'continue what you have been doing'.
1 = Perform actions as indicated by other bits
in this byte.
1 0 = Print (echo) break character
1 = Skip (don't echo) break character
2 0 = Print (echo) text up to break character
1 = Skip (don't echo) text up to break character
3 0 = Continue using same classes of break
characters.
1 = The two 8-bit bytes following this byte
contain flags for the new break classes.
4 0 = Continue using same classes of transmit
characters.
1 = Reset transmit classes according to the two
bytes following 1) the break classes bytes,
if the break classes are also being reset,
or 2) this byte, if the break classes are
NOT also being reset.
Value (decimal) of the <cmd> byte and its meaning:
0 = Continue what you have been doing
Even numbers greater than zero (i.e. numbers with the right most bit off) are in error and should be interpreted as equal to zero. When the <cmd> is an even number greater than zero, classes bytes TC1 & TC2 and/or BC1 & BC2 must not be sent.
1 = Print (echo) up to AND INCLUDING break character
3 = Print up to break character and SKIP (don't echo) break character
5 = Skip text (don't echo) up to break character, but PRINT break character
7 = Skip up to and including break character
Add one of the previous non-zero values to one of the following values, to get the total decimal value for the byte (Note that classes may not be reset without also resetting the printing action; so an odd number is guaranteed):
8 = Set break classes (using the next two bytes [BC1 BC2])
16 = Set transmission classes (using the next two bytes [TC1 TC2])
24 = Set break classes (using the next two bytes [BC1 BC2]) and the transmission classes (using the two bytes after that [TC1 TC2]).
Sub-commands (IAC SB RCTE...) are only sent by the controlling host and, in addition to other functions, functionally replace the Go-Ahead (IAC GA) Telnet feature. RCTE also functionally replaces the Echo (IAC ECHO) Telnet option. That is the Suppress Go-Ahead option should be in force and the Echo option should not be in force while the RCTE option is in use. The echo mode on terminating use of the RCTE option should be the default state, that is DON'T ECHO, WON'T ECHO.
Classes for break and transmission (the right-most bit of the second byte (TC2 or BC2) represents class 1; the left-most bit of the first byte (TC1 or BC1) represents the currently undefined class 16:
-
1: Upper-Case Letter (A-Z)
-
2: Lower-case Letters (a-z)
-
3: Numbers (0-9)
-
4: Format Effectors (
<BS><CR><LF><FF><HT><VT>)The sequence
<cr><lf>counts as one character when processed as the Telnet end of line, and is a single break character when class 4 is set. The sequence<cr><nul>counts as one character and is a break character if and only if<cr>is a break character (i.e. class 4 is set). -
5: Non-format Effector Control Characters including
<DEL>and<ESC> -
6:
. , ; : ? ! -
7:
{ [ ( < > ) ] } -
8:
' " / \ % @ $ & # + - * = ^ _ | ~ -
9:
<Space>
And Telnet commands (IAC . . .) sent by the user are always to have the effect of a break character. That is, every instance of an IAC is to be treated as a break character, except the sequence IAC IAC.
The representation to be displayed when printing is called for is the obvious one for the visible characters (classes 1, 2, 3, 6, 7, and 8). Space (class 9) is represented by a blank space. The format effectors (class 4) by their format effect. The non-format effector controls (class 5) print nothing (no space).
Initially no break classes or transmission classes are in effect.
Please note that if all the bits are set in a Telnet subcommand argument byte such as TC2 or BC2 then that byte must be preceeded by an <IAC> flag byte. This is the common convention of doubling the escape character to use its value as data.
Sub-commands (IAC SB RCTE...) are refered to as "break reset commands".