VT100中DECREQTPARM的作用是什么?
What is the purpose of DECREQTPARM in VT100?
我正在为 ESP8266 ("ESPTerm") 实现终端仿真器,并浏览 xterm 联机帮助页以供参考,以及旧的 VTxxx 参考手册。
我已经实现了 DECREQTPARM
。但现在我问自己一个问题:这有什么用?
显然,一旦您能够发送查询并获得响应,您就已经知道正确的波特率、奇偶校验和字节长度。这曾经有什么用吗,今天还有用吗?
唯一值得查询的信息是 {flags}
值,但它仅用于某些扩展板。
这是我找到的,供参考:
DECREQTPARM Request Terminal Parameters
<ESC>[ {Ps} x
The host sends this sequence to request the VT100 to send a DECREPTPARM
sequence back. {Ps} can be either 0 or 1. If 0, the terminal will be
allowed to send unsolicited DECREPTPARMs. These reports will be
generated each time the terminal exits the SET-UP mode. If {Ps} is 1,
then the terminal will only generate DECREPTPARMs in response to a
request.
DECREPTPARM Report Terminal Parameters VT100 to Host
<ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
This sequence is generated by the VT100 to notify the host of the
status of selected terminal parameters. The status sequence may be
sent when requested by the host (via DECREQTPARM) or at the terminal's
discretion. On power up or reset, the VT100 is inhibited from sending
unsolicited reports.
The meanings of the sequence paramters are:
Parameter Value Meaning
------------------------------------------------------------------
{sol} 1 This message is a report.
2 This message is a report, and the terminal is
only reporting on request.
{par} 1 No parity set
4 Parity set and odd
5 Parity set and even
{nbits} 1 8 bits per character
2 7 bits per character
{xspd} 0 Speed set to 50 bps
-and- 8 Speed set to 75 bps
{rspd} 16 Speed set to 110 bps
24 Speed set to 134.5 bps
{xspd}= 32 Speed set to 150 bps
Transmit 40 Speed set to 200 bps
Speed 48 Speed set to 300 bps
56 Speed set to 600 bps
{rspd}= 64 Speed set to 1200 bps
Recieve 72 Speed set to 1800 bps
Speed 80 Speed set to 2000 bps
88 Speed set to 2400 bps
96 Speed set to 3600 bps
104 Speed set to 4800 bps
112 Speed set to 9600 bps
120 Speed set tp 19200 bps
{cmul} 1 The bit rate multiplier is 16
{flags} 0-15 This value communicates the four switch values
in block 5 of SET-UP B, which are only visible
to the user when an STP option is installed.
短:除了明显的,没什么用
更长:
DEC 的工程师在设计 VT100 时并没有预知你可以 运行 stty
并获取信息,并且 autobauding modems(在此处引用为 "by the early 1980s",这意味着该功能在 之前 已在市场上销售),您当然有可能不会我真的不知道您的实际线路速度是多少。您也不会知道您的 DEC 计算机看到的串行连接的其他详细信息。
DEC 的一些后来的系统(例如 VMS)有办法显示一些信息,例如 show term
。
我正在为 ESP8266 ("ESPTerm") 实现终端仿真器,并浏览 xterm 联机帮助页以供参考,以及旧的 VTxxx 参考手册。
我已经实现了 DECREQTPARM
。但现在我问自己一个问题:这有什么用?
显然,一旦您能够发送查询并获得响应,您就已经知道正确的波特率、奇偶校验和字节长度。这曾经有什么用吗,今天还有用吗?
唯一值得查询的信息是 {flags}
值,但它仅用于某些扩展板。
这是我找到的,供参考:
DECREQTPARM Request Terminal Parameters
<ESC>[ {Ps} x
The host sends this sequence to request the VT100 to send a DECREPTPARM
sequence back. {Ps} can be either 0 or 1. If 0, the terminal will be
allowed to send unsolicited DECREPTPARMs. These reports will be
generated each time the terminal exits the SET-UP mode. If {Ps} is 1,
then the terminal will only generate DECREPTPARMs in response to a
request.
DECREPTPARM Report Terminal Parameters VT100 to Host
<ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
This sequence is generated by the VT100 to notify the host of the
status of selected terminal parameters. The status sequence may be
sent when requested by the host (via DECREQTPARM) or at the terminal's
discretion. On power up or reset, the VT100 is inhibited from sending
unsolicited reports.
The meanings of the sequence paramters are:
Parameter Value Meaning
------------------------------------------------------------------
{sol} 1 This message is a report.
2 This message is a report, and the terminal is
only reporting on request.
{par} 1 No parity set
4 Parity set and odd
5 Parity set and even
{nbits} 1 8 bits per character
2 7 bits per character
{xspd} 0 Speed set to 50 bps
-and- 8 Speed set to 75 bps
{rspd} 16 Speed set to 110 bps
24 Speed set to 134.5 bps
{xspd}= 32 Speed set to 150 bps
Transmit 40 Speed set to 200 bps
Speed 48 Speed set to 300 bps
56 Speed set to 600 bps
{rspd}= 64 Speed set to 1200 bps
Recieve 72 Speed set to 1800 bps
Speed 80 Speed set to 2000 bps
88 Speed set to 2400 bps
96 Speed set to 3600 bps
104 Speed set to 4800 bps
112 Speed set to 9600 bps
120 Speed set tp 19200 bps
{cmul} 1 The bit rate multiplier is 16
{flags} 0-15 This value communicates the four switch values
in block 5 of SET-UP B, which are only visible
to the user when an STP option is installed.
短:除了明显的,没什么用
更长:
DEC 的工程师在设计 VT100 时并没有预知你可以 运行 stty
并获取信息,并且 autobauding modems(在此处引用为 "by the early 1980s",这意味着该功能在 之前 已在市场上销售),您当然有可能不会我真的不知道您的实际线路速度是多少。您也不会知道您的 DEC 计算机看到的串行连接的其他详细信息。
DEC 的一些后来的系统(例如 VMS)有办法显示一些信息,例如 show term
。