跳到主要内容

命令含义

IAC WILL RCTE

发送此命令的一方请求或同意使用 RCTE 选项, 并将发送用于控制对方终端打印机的指令。

IAC WON'T RCTE

发送此选项的一方拒绝发送用于控制对方终端打印机的指令。

IAC DO RCTE

发送方请求或同意由对方(WILL RCTE 的发送方)发出命令, 以控制其(DO 的发送方)向终端打印机的输出。

IAC DON'T RCTE

发送此命令的一方拒绝允许对方控制其(DON'T 的发送方)终端打印机。

IAC SB RCTE <cmd> [BC1 BC2] [TC1 TC2]

其中:

<cmd> 是一个 8 位字节, 具有以下标志位(位从右数起):

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.

<cmd> 字节的取值(十进制)及其含义:

0 = Continue what you have been doing

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

将上述某个非零值与下列某个值相加, 即得到该字节的十进制总值(注意: 不重置打印动作就不能重置类别; 因此结果必为奇数):

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]).

子命令(IAC SB RCTE...)只能由控制主机发送, 除其他功能外, 在功能上取代了 Telnet 的 Go-Ahead(IAC GA)命令。