⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chapter3.html

📁 VT100向导
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TD><STRONG><CODE>ESC [ Ps K</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 0</TD></TR></TBODY></TABLE><P>Erases some or all characters in the active line according to the parameter. <EM>EditorFunction</EM></P><TABLE WIDTH="100%"><COL WIDTH="20%"><COL WIDTH="80%"><THEAD><TR><TH>Parameter</TH><TH>Parameter Meaning</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>0</TD><TD>Erase from the active position to the end of the line, inclusive (default)</TD></TR><TR VALIGN="TOP"><TD>1</TD><TD>Erase from the start of the screen to the active position, inclusive</TD></TR><TR VALIGN="TOP"><TD>2</TD><TD>Erase all of the line, inclusive</TD></TR></TBODY></TABLE><H4 ID="HTS"><SPAN CLASS="mnemonic">HTS</SPAN> -- Horizontal Tabulation Set</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC H</CODE></STRONG></TD><TD ALIGN="RIGHT">&nbsp;</TD></TR></TBODY></TABLE><P>Set one horizontal stop at the active position. <EM>Format Effector</EM></P><H4 ID="HVP"><SPAN CLASS="mnemonic">HVP</SPAN> -- Horizontal and Vertical Position</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Pn ; Pn f</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 1</TD></TR></TBODY></TABLE><P>Moves the active position to the position specified by the parameters. This sequencehas two parameter values, the first specifying the line position and thesecond specifying the column. A parameter value of either zero or one causes theactive position to move to the first line or column in the display, respectively. Thedefault condition with no parameters present moves the active position to thehome position. In the VT100, this control behaves identically with its editor functioncounterpart, CUP. The numbering of lines and columns depends on the resetor set state of the origin mode (DECOM). <EM>Format Effector</EM></P><H4 ID="IND"><SPAN CLASS="mnemonic">IND</SPAN> -- Index</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC D</CODE></STRONG></TD><TD ALIGN="RIGHT">&nbsp;</TD></TR></TBODY></TABLE><P>This sequence causes the active position to move downward one line withoutchanging the column position. If the active position is at the bottom margin, ascroll up is performed. <EM>Format Effector</EM></P><H4 ID="LNM"><SPAN CLASS="mnemonic">LNM</SPAN> -- Line Feed/New Line Mode</H4><P>This is a parameter applicable to set mode (SM) and reset mode (RM) control sequences.The reset state causes the interpretation of the line feed (LF), defined inANSI Standard X3.4-1977, to imply only vertical movement of the active positionand causes the <SPAN CLASS="keyname">RETURN</SPAN> key (CR) to send the single code CR. The set state causesthe LF to imply movement to the first position of the following line and causes the<SPAN CLASS="keyname">RETURN</SPAN> key to send the two codes (CR, LF). This is the New Line (NL) option.</P><P>This mode does not affect the index (IND), or next line (NEL) format effectors.</P><H4 ID="NEL"><SPAN CLASS="mnemonic">NEL</SPAN> -- Next Line</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC E</CODE></STRONG></TD><TD ALIGN="RIGHT">&nbsp;</TD></TR></TBODY></TABLE><P>This sequence causes the active position to move to the first position on the nextline downward. If the active position is at the bottom margin, a scroll up is performed.<EM>Format Effector</EM></P><H4 ID="RI"><SPAN CLASS="mnemonic">RI</SPAN> -- Reverse Index</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC M</CODE></STRONG></TD><TD ALIGN="RIGHT">&nbsp;</TD></TR></TBODY></TABLE><P>Move the active position to the same horizontal position on the preceding line. Ifthe active position is at the top margin, a scroll down is performed. <EM>Format Effector</EM></P><H4 ID="RIS"><SPAN CLASS="mnemonic">RIS</SPAN> -- Reset To Initial State</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC c</CODE></STRONG></TD><TD ALIGN="RIGHT">&nbsp;</TD></TR></TBODY></TABLE><P>Reset the VT100 to its initial state, i.e., the state it has after it is powered on. Thisalso causes the execution of the power-up self-test and signal INIT&nbsp;H to be assertedbriefly.</P><H4 ID="RM"><SPAN CLASS="mnemonic">RM</SPAN> -- Reset Mode</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Ps ; Ps ; . . . ; Ps l</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> none</TD></TR></TBODY></TABLE><P>Resets one or more VT100 modes as specified by each selective parameter in theparameter string. Each mode to be reset is specified by a separate parameter. [SeeSet Mode (SM) control sequence]. (See Modes following this section).</P><H4 ID="SCS"><SPAN CLASS="mnemonic">SCS</SPAN> -- Select Character Set</H4><P>The appropriate G0 and G1 character sets are designated from one of the fivepossible character sets. The G0 and G1 sets are invoked by the codes SI and SO(shift in and shift out) respectively.</P><TABLE WIDTH="100%"><COL WIDTH="20%"><COL WIDTH="20%"><COL WIDTH="60%"><THEAD><TR VALIGN="BOTTOM"><TH>G0 Sets Sequence</TH><TH>G1 Sets Sequence</TH><TH>Meaning</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD><STRONG><CODE>ESC ( A</CODE></STRONG></TD><TD><STRONG><CODE>ESC ) A</CODE></STRONG></TD><TD>United Kingdom Set</TD></TR><TR VALIGN="TOP"><TD><STRONG><CODE>ESC ( B</CODE></STRONG></TD><TD><STRONG><CODE>ESC ) B</CODE></STRONG></TD><TD>ASCII Set</TD></TR><TR VALIGN="TOP"><TD><STRONG><CODE>ESC ( 0</CODE></STRONG></TD><TD><STRONG><CODE>ESC ) 0</CODE></STRONG></TD><TD>Special Graphics</TD></TR><TR VALIGN="TOP"><TD><STRONG><CODE>ESC ( 1</CODE></STRONG></TD><TD><STRONG><CODE>ESC ) 1</CODE></STRONG></TD><TD>Alternate Character ROM Standard Character Set</TD></TR><TR VALIGN="TOP"><TD><STRONG><CODE>ESC ( 2</CODE></STRONG></TD><TD><STRONG><CODE>ESC ) 2</CODE></STRONG></TD><TD>Alternate Character ROM Special Graphics</TD></TR></TBODY></TABLE><P>The United Kingdom and ASCII sets conform to the "ISO international register ofcharacter sets to be used with escape sequences". The other sets are privatecharacter sets. Special graphics means that the graphic characters for the codes137<SUB>8</SUB> to 176<SUB>8</SUB> are replaced with other characters. The specified character set willbe used until another SCS is received.</P><P CLASS="note">NOTE: Additional information concerning the SCS escape sequence may be obtainedin ANSI standard X3.41-1974.</P><H4 ID="SGR"><SPAN CLASS="mnemonic">SGR</SPAN> -- Select Graphic Rendition</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Ps ; . . . ; Ps m</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 0</TD></TR></TBODY></TABLE><P>Invoke the graphic rendition specified by the parameter(s). All following characterstransmitted to the VT100 are rendered according to the parameter(s) until the nextoccurrence of SGR. <EM>Format Effector</EM></P><TABLE WIDTH="100%"><THEAD><TR VALIGN="BOTTOM"><TH>Parameter</TH><TH>Parameter Meaning</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>0</TD><TD>Attributes off</TD></TR><TR VALIGN="TOP"><TD>1</TD><TD>Bold or increased intensity</TD></TR><TR VALIGN="TOP"><TD>4</TD><TD>Underscore</TD></TR><TR VALIGN="TOP"><TD>5</TD><TD>Blink</TD></TR><TR VALIGN="TOP"><TD>7</TD><TD>Negative (reverse) image</TD></TR></TBODY></TABLE><P>All other parameter values are ignored.</P><P>With the Advanced Video Option, only one type of character attribute is possibleas determined by the cursor selection; in that case specifying either theunderscore or the reverse attribute will activate the currently selected attribute.(See cursor selection in Chapter 1).</P><H4 ID="SM"><SPAN CLASS="mnemonic">SM</SPAN> -- Set Mode</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Ps ; . . . ; Ps h</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> none</TD></TR></TBODY></TABLE><P>Causes one or more modes to be set within the VT100 as specified by eachselective parameter in the parameter string. Each mode to be set is specified by aseparate parameter. A mode is considered set until it is reset by a reset mode (RM)control sequence.</P><H4 ID="TBC"><SPAN CLASS="mnemonic">TBC</SPAN> -- Tabulation Clear</H4><TABLE WIDTH="100%"><TBODY><TR><TD><STRONG><CODE>ESC [ Ps g</CODE></STRONG></TD><TD ALIGN="RIGHT"><EM>default value:</EM> 0</TD></TR></TBODY></TABLE><TABLE WIDTH="100%"><COL WIDTH="20%"><COL WIDTH="80%"><THEAD><TR VALIGN="BOTTOM"><TH>Parameter</TH><TH>Parameter Meaning</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>0</TD><TD>Clear the horizontal tab stop at the active position(the default case).</TD></TR><TR VALIGN="TOP"><TD>3</TD><TD>Clear all horizontal tab stops.</TD></TR></TBODY></TABLE><P>Any other parameter values are ignored. <EM>Format Effector</EM></P><H3 ID="S3.3.4">Modes</H3><P>The following is a list of VT100 modes which may be changed with set mode (SM)and reset mode (RM) controls.</P><H4>ANSI Specified Modes</H4><TABLE WIDTH="100%"><COL WIDTH="20%"><COL WIDTH="20%"><COL WIDTH="60%"><THEAD><TR VALIGN="BOTTOM"><TH>Parameter</TH><TH>Mode Mnemonic</TH><TH>Mode Function</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>0</TD><TD></TD><TD>Error (ignored)</TD></TR><TR VALIGN="TOP"><TD>20</TD><TD>LNM</TD><TD>Line feed new line mode</TD></TR></TBODY></TABLE><H4>DEC Private Modes</H4><P>If the first character in the parameter string is ? (77<SUB>8</SUB>), the parameters are interpretedas DEC private parameters according to the following:</P><TABLE WIDTH="100%"><COL WIDTH="20%"><COL WIDTH="20%"><COL WIDTH="60%"><THEAD><TR VALIGN="BOTTOM"><TH>Parameter</TH><TH>Mode Mnemonic</TH><TH>Mode Function</TH></TR></THEAD><TBODY><TR VALIGN="TOP"><TD>0</TD><TD></TD><TD>Error (ignored)</TD></TR><TR VALIGN="TOP"><TD>1</TD><TD>DECCKM</TD><TD>Cursor key</TD></TR><TR VALIGN="TOP"><TD>2</TD><TD>DECANM</TD><TD>ANSI/VT52</TD></TR><TR VALIGN="TOP"><TD>3</TD><TD>DECCOLM</TD><TD>Column</TD></TR><TR VALIGN="TOP"><TD>4</TD><TD>DECSCLM</TD><TD>Scrolling</TD></TR><TR VALIGN="TOP"><TD>5</TD><TD>DECSCNM</TD><TD>Screen</TD></TR><TR VALIGN="TOP"><TD>6</TD><TD>DECOM</TD><TD>Origin</TD></TR><TR VALIGN="TOP"><TD>7</TD><TD>DECAWM</TD><TD>Auto wrap</TD></TR><TR VALIGN="TOP"><TD>8</TD><TD>DECARM</TD><TD>Auto repeating</TD></TR><TR VALIGN="TOP"><TD>9</TD><TD>DECINLM</TD><TD>Interlace</TD></TR></TBODY>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -