📄 chapter3.html
字号:
<P>Alternative sequences which will accomplish the same thing:</P><TABLE><THEAD><TR><TD> </TD><TH>Sequence</TH><TH>Octal Representation of Sequence</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>a.</TD><TD><CODE>ESC [ ; 4 ; 5 m</CODE></TD><TD><CODE>033 133 073 064 073 065 155</CODE></TD></TR><TR VALIGN="TOP"><TD ROWSPAN="3">b.</TD><TD><CODE>ESC [ m</CODE></TD><TD><CODE>033 133 155</CODE></TD></TR><TR VALIGN="TOP"><TD><CODE>ESC [ 4 m</CODE></TD><TD><CODE>033 133 064 155</CODE></TD></TR><TR VALIGN="TOP"><TD><CODE>ESC [ 5 m</CODE></TD><TD><CODE>033 133 065 155</CODE></TD></TR><TR VALIGN="TOP"><TD>c.</TD><TD><CODE>ESC [ 0 ; 04; 005 m </CODE></TD><TD><CODE>033 133 060 073 060 064 073 060 060 065 155</CODE></TD></TR></TBODY></TABLE><H4>Control Sequences</H4><P>All of the following escape and control sequences are transmitted from the hostcomputer to the VT100 unless otherwise noted. All of the control sequences are asubset of those specified in ANSI X3.64-1977 and ANSI X3.41-1974.</P><H4 ID="CPR"><SPAN CLASS="mnemonic">CPR</SPAN> -- Cursor Position Report -- VT100 to Host</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn ; Pn R</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>The CPR sequence reports the active position by means of the parameters. Thissequence has two parameter values, the first specifying the line and the secondspecifying the column. The default condition with no parameters present, or parametersof 0, is equivalent to a cursor at home position.</P><P>The numbering of lines depends on the state of the Origin Mode (DECOM).</P><P>This control sequence is solicited by a device status report (DSR) sent from thehost.</P><H4 ID="CUB"><SPAN CLASS="mnemonic">CUB</SPAN> -- Cursor Backward -- Host to VT100 and VT100 to Host</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn D</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>The CUB sequence moves the active position to the left. The distance moved isdetermined by the parameter. If the parameter value is zero or one, the activeposition is moved one position to the left. If the parameter value is n, the activeposition is moved n positions to the left. If an attempt is made to move the cursorto the left of the left margin, the cursor stops at the left margin. <EM>Editor Function</EM></P><H4 ID="CUD"><SPAN CLASS="mnemonic">CUD</SPAN> -- Cursor Down -- Host to VT100 and VT100 to Host</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn B</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>The CUD sequence moves the active position downward without altering the columnposition. The number of lines moved is determined by the parameter. If theparameter value is zero or one, the active position is moved one line downward. Ifthe parameter value is n, the active position is moved n lines downward. In anattempt is made to move the cursor below the bottom margin, the cursor stops atthe bottom margin. <EM>Editor Function</EM></P><H4 ID="CUF"><SPAN CLASS="mnemonic">CUF</SPAN> -- Cursor Forward -- Host to VT100 and VT100 to Host</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn C</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>The CUF sequence moves the active position to the right. The distance moved isdetermined by the parameter. A parameter value of zero or one moves the activeposition one position to the right. A parameter value of n moves the active positionn positions to the right. If an attempt is made to move the cursor to the right of theright margin, the cursor stops at the right margin. <EM>Editor Function</EM></P><H4 ID="CUP"><SPAN CLASS="mnemonic">CUP</SPAN> -- Cursor Position</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn ; Pn H</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>The CUP sequence moves the active position to the position specified by theparameters. This sequence has two parameter values, the first specifying the lineposition and the second specifying the column position. A parameter value of zeroor one for the first or second parameter moves the active position to the first line orcolumn in the display, respectively. The default condition with no parameters presentis equivalent to a cursor to home action. In the VT100, this control behavesidentically with its format effector counterpart, HVP. <EM>Editor Function</EM></P><P>The numbering of lines depends on the state of the Origin Mode (DECOM).</P><H4 ID="CUU"><SPAN CLASS="mnemonic">CUU</SPAN> -- Cursor Up -- Host to VT100 and VT100 to Host</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn A</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>Moves the active position upward without altering the column position. The numberof lines moved is determined by the parameter. A parameter value of zero orone moves the active position one line upward. A parameter value of n moves theactive position n lines upward. If an attempt is made to move the cursor above thetop margin, the cursor stops at the top margin. <EM>Editor Function</EM></P><H4 ID="DA"><SPAN CLASS="mnemonic">DA</SPAN> -- Device Attributes</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn c</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 0</TD></TR></TBODY></TABLE><OL><LI>The host requests the VT100 to send a device attributes (DA) controlsequence to identify itself by sending the DA control sequence witheither no parameter or a parameter of 0.</LI><LI>Response to the request described above (VT100 to host) is generatedby the VT100 as a DA control sequence with the numeric parametersas follows:<TABLE WIDTH="100%"><COL WIDTH="50%"><COL WIDTH="50%"><THEAD><TR><TH>Option Present</TH><TH>Sequence Sent</TH></TR></THEAD><TBODY><TR><TD>No options</TD><TD><CODE>ESC [?1;0c</CODE></TD></TR><TR><TD>Processor option (STP)</TD><TD><CODE>ESC [?1;1c</CODE></TD></TR><TR><TD>Advanced video option (AVO)</TD><TD><CODE>ESC [?1;2c</CODE></TD></TR><TR><TD>AVO and STP</TD><TD><CODE>ESC [?1;3c</CODE></TD></TR><TR><TD>Graphics option (GPO)</TD><TD><CODE>ESC [?1;4c</CODE></TD></TR><TR><TD>GPO and STP</TD><TD><CODE>ESC [?1;5c</CODE></TD></TR><TR><TD>GPO and AVO</TD><TD><CODE>ESC [?1;6c</CODE></TD></TR><TR><TD>GPO, STP and AVO</TD><TD><CODE>ESC [?1;7c</CODE></TD></TR></TBODY></TABLE></LI></OL><H4 ID="DECALN"><SPAN CLASS="mnemonic">DECALN</SPAN> -- Screen Alignment Display (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC # 8</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>This command fills the entire screen area with uppercase Es for screen focus andalignment. This command is used by DEC manufacturing and Field Service personnel.</P><H4 ID="DECANM"><SPAN CLASS="mnemonic">DECANM</SPAN> -- ANSI/VT52 Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state causes only VT52 compatible escape sequencesto be interpreted and executed. The set state causes only ANSI "compatible"escape and control sequences to be interpreted and executed.</P><H4 ID="DECARM"><SPAN CLASS="mnemonic">DECARM</SPAN> -- Auto Repeat Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state causes no keyboard keys to auto-repeat. Theset state causes certain keyboard keys to auto-repeat.</P><H4 ID="DECAWM"><SPAN CLASS="mnemonic">DECAWM</SPAN> -- Autowrap Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state causes any displayable characters receivedwhen the cursor is at the right margin to replace any previous characters there. Theset state causes these characters to advance to the start of the next line, doing ascroll up if required and permitted.</P><H4 ID="DECCKM"><SPAN CLASS="mnemonic">DECCKM</SPAN> -- Cursor Keys Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. This mode is only effective when the terminal is in keypadapplication mode (see DECKPAM) and the ANSI/VT52 mode (DECANM) is set(see DECANM). Under these conditions, if the cursor key mode is reset, the fourcursor function keys will send ANSI cursor control commands. If cursor key modeis set, the four cursor function keys will send application functions.</P><H4 ID="DECCOLM"><SPAN CLASS="mnemonic">DECCOLM</SPAN> -- Column Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state causes a maximum of 80 columns on thescreen. The set state causes a maximum of 132 columns on the screen.</P><H4 ID="DECDHL"><SPAN CLASS="mnemonic">DECDHL</SPAN> -- Double Height Line (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD>Top Half: <STRONG><CODE>ESC # 3</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR><TR><TD>Bottom Half: <STRONG><CODE>ESC # 4</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>These sequences cause the line containing the active position to become the topor bottom half of a double-height double-width line. The sequences must be usedin pairs on adjacent lines and the same character output must be sent to both linesto form full double-height characters. If the line was single-width single-height, allcharacters to the right of the center of the screen are lost. The cursor remains overthe same character position unless it would be to the right of the right margin, inwhich case it is moved to the right margin.</P><P CLASS="note">NOTE: The use of double-width characters reduces the number of characters per line by half.</P><H4 ID="DECDWL"><SPAN CLASS="mnemonic">DECDWL</SPAN> -- Double-Width Line (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC # 6</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>This causes the line that contains the active position to become double-widthsingle-height. If the line was single-width single-height, all characters to the rightof the screen are lost. The cursor remains over the same character position unlessit would be to the right of the right margin, in which case, it is moved to the rightmargin.</P><P CLASS="note">NOTE: The use of double-width characters reduces the number of characters per line by half.</P><H4 ID="DECID"><SPAN CLASS="mnemonic">DECID</SPAN> -- Identify Terminal (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC Z</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>This sequence causes the same response as the ANSI device attributes (DA). Thissequence will not be supported in future DEC terminals, therefore, DA should beused by any new software.</P><H4 ID="DECINLM"><SPAN CLASS="mnemonic">DECINLM</SPAN> -- Interlace Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state (non-interlace) causes the video processor todisplay 240 scan lines per frame. The set state (interlace) causes the video processorto display 480 scan lines per frame. There is no increase in character resolution.</P><H4 ID="DECKPAM"><SPAN CLASS="mnemonic">DECKPAM</SPAN> -- Keypad Application Mode (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC =</CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>The auxiliary keypad keys will transmit control sequences as defined in Tables <A HREF="table3-7.html">3-7</A>and <A HREF="table3-8.html">3-8</A>.</P><H4 ID="DECKPNM"><SPAN CLASS="mnemonic">DECKPNM</SPAN> -- Keypad Numeric Mode (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC ></CODE></STRONG></TD><TD ALIGN="RIGHT"> </TD></TR></TBODY></TABLE><P>The auxiliary keypad keys will send ASCII codes corresponding to the charactersengraved on the keys.</P><H4 ID="DECLL"><SPAN CLASS="mnemonic">DECLL</SPAN> -- Load LEDS (DEC Private)</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Ps q</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 0</TD></TR></TBODY></TABLE><P>Load the four programmable LEDs on the keyboard according to the parameter(s).</P><TABLE WIDTH="100%"><COL WIDTH="30%"><COL WIDTH="70%"><THEAD><TR><TH>Parameter</TH><TH>Parameter Meaning</TH></TR></THEAD><TBODY><TR><TD>0</TD><TD>Clear LEDs L1 through L4</TD></TR><TR><TD>1</TD><TD>Light L1</TD></TR><TR><TD>2</TD><TD>Light L2</TD></TR><TR><TD>3</TD><TD>Light L3</TD></TR><TR><TD>4</TD><TD>Light L4</TD></TR></TBODY></TABLE><P>LED numbers are indicated on the keyboard.</P><H4 ID="DECOM"><SPAN CLASS="mnemonic">DECOM</SPAN> -- Origin Mode (DEC Private)</H4><P>This is a private parameter applicable to set mode (SM) and reset mode (RM)control sequences. The reset state causes the origin to be at the upper-left characterposition on the screen. Line and column numbers are, therefore, independent ofcurrent margin settings. The cursor may be positioned outside the margins with acursor position (CUP) or horizontal and vertical position (HVP) control.</P><P>The set state causes the origin to be at the upper-left character position within themargins. Line and column numbers are therefore relative to the current marginsettings. The cursor is not allowed to be positioned outside the margins.</P><P>The cursor is moved to the new home position when this mode is set or reset.</P><P>Lines and columns are numbered consecutively, with the origin being line 1, column1.</P><H4 ID="DECRC"><SPAN CLASS="mnemonic">DECRC</SPAN> -- Restore Cursor (DEC Private)</H4><TABLE WIDTH="100%"><TBODY>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -