The sender of this command REQUESTS or AGREES to use the
option, and will send single data characters which are to interpreted as if replacement data strings had been sent
IAC WON'T
The sender of this option REFUSES to send single data
which are to be interpreted as if replacement data strings
been sent. Any existing BM definitions are
(i.e., reset to their original data interpretations).
IAC DO
The sender REQUESTS or AGREES to have the other side (sender
WILL BM) send single data characters which are to be
as if replacement data strings had been sent
IAC DON'T
The sender REFUSES to allow the other side to send single
characters which are to be interpreted as if replacement
strings had been sent. Any existing BM
are to be discarded
is the data byte actually to be sent across
network; it may NOT be Telnet IAC (decimal 255, but may be
other 8-bit character
is one 8-bit byte binary number, indicating how
<replacement string> characters follow, up to the ending
SE, but not including it. Note that doubled IACs in definition should only be counted as one character per pair
<replacement string> is a string of zero or more Telnet
characters and/or commands, which the is represent; any character may occur within a <
string>. Note, however, that an IAC in the string must
doubled, to be interpreted later as an IAC; to be
later as data byte 255, it must be quadrupled in the
<replacement string> specification
The indicated will be sent instead of the
<replacement string>. The receiver of the (the
of the DO BM) is to behave EXACTLY as if the <replacement string
string of bytes had instead been received from the network. interpretation is to occur before any other
interpretations, unless the occurs as part of
Telnet command; in this case no special interpretation is to
made. In particular, an entire Telnet subnegotiation (i.e.
IAC SB through IAC SE) is to be considered a Telnet command
which NO replacement should be done
The effect of a particular may be negated by
it to "expand" into itself
IAC SB BM X <0> IAC SE may be used to cause X to
ignored in the data stream
The receiver of the for refuses to
the indicatedtranslation from to <
string> because the particular is not an
choice, the length of the <replacement string> exceeds
storage, the length of the actual <replacement string> did
match the length predicted in the , or for some
reason
The sender should (but is not required to) respond
resetting (i.e., sending an IAC SB BM <
byte> <1> IAC SE).
If the receiver absolutely insists on cancelling a given macro
the best it can do is to turn off the entire option, with IAC
BM, wait for an acknowledging IAC WONT BM and then restart
option, with IAC DO BM. This will reset all other macroes as
but it will allow the receiver to REFUSE with code BAD
if/when the foreign site attempts to redefine the macro question
3. Default
WON'T BM -- DON'T
No reinterpretation of data bytes is done
4. Motivation for the option
Subcommands for Telnet options currently require a minimum of
characters to be sent over the network (i.e., IAC SB