|
This document accompanies the KTerm and Kom programs, which are mainly terminal
emulations. Since material about the extend and precise semantics of the emulatation
intended by these programs is hard to find on the internet today, it came out
nessesary to include a more precise specification within their release.
Hopefully, this helps to clearify the relation to the VT100, VT102, Linux, XTerm and ansi.sys (ANSI-BBS) terminals, which are the target of these programs. Further, it specifies which codes are interpreted by them, and what has been omitted.
To begin with, all of the above call themselfes "ANSI" emulations, which makes this
notion pretty vage. "ANSI" referes here to the American National Standards
Institute's documents X3.41-1974 and X3.64-1977. DEC partially implemented this
standart in their VT100 terminal, with some additions. The VT102 is a later extention
of that. Both the Linux console and the XTerm emulation implement most of VT102,
with some additions. MS stepped in later and produced another ANSI emulation,
This situation is further confused by the fact, that often many versions of the above terminals and emulations are out, one able to do a little more or less then the other. Especially the later makes the production of a working emulation an impossible task. And this is the place where this document steps in: |
Terminal Control Commands |
The VT100 is compatible with both the previous Digital standard and ANSI standards. Customers may use existing Digital software designed around the VT52 or new VT100 software. The VT100 has a "VT52 compatible" mode in which the VT100 responds to control sequences like a VT52. In this mode, most of the new VT100 features cannot be used.
Throughout this document references will be made to "VT52 mode" or "ANSI mode". These two terms are used to indicate the VT100's software compatibility.
NOTE: The ANSI standards allow the manufacturer flexibility in implementing each function. This document describes how the VT100 will respond to the implemented ANSI central function.
Parts of the terminal description
Control Characters |
Control characters (codes 00 - 037 inclusive) are specifically excluded from the control sequence syntax, but may be embedded within a control sequence. Embedded control characters are executed as soon as they are encountered by the VT100. The processing of the control sequence then continues with the next character recieved. The exceptions are: if the <ESC> character occurs, the current control sequence is aborted, and a new one commences beginning with the <ESC> just recieved. If the character <CAN> (030) or the character <SUB> (032) occurs, the current control sequence is aborted. The ability to embed control characters allows the synchronization characters XON and XOFF to be interpreted properly without affecting the control sequence.
Control Character | Octal Code | Action Taken |
<NUL> | 000 | Ignored on input; not stored in buffer |
<EN> | 005 | Transmit the ANSWERBACK message. The answerback message can be loaded in SET-UP B (i.e. is a configurable string). |
<BE> | 007 | Sound bell |
<BS> | 010 | Move cursor to the left one position, unless it is at the left margin, in which case no action is taken. |
<HT> | 011 | Move cursor to the next tab stop, or to the right margin if no further tabs are set. |
<LF> | 012 | Causes either a line feed or new line operation (See new line mode.) |
<VT> | 013 | Same as <LF>. |
<FF> | 014 | Same as <LF>. |
<CR> | 015 | Move the cursor to the left margin of the current line. |
<SO> | 016 | Invoke the G1 character set, as designated by the SCS control sequence. |
<SI> | 017 | Invoke the G0 character set, as selected by the <ESC>( sequence. |
<DC1> | 021 | Causes terminal to resume transmission (XON). |
<DC3> | 023 | Causes terminal to stop transmitting all codes except XOFF and XON (XOFF). |
<CAN> | 030 | If sent during a control sequence, the sequence id immediately terminated and not executed. It also causes the error character (checkerboard) to be displayed. |
<SUB> | 032 | Same as <CAN>. |
<ESC> | 033 | Introduces a control sequence. |
<DEL> | 177 | Ignored on input; not stored in buffer. |
Control Sequences |
Delimiters / \ / \ | | \ / \ / Sequence: <ESC>[ 0 ; 4 ; 5 m ^^^^^^ ^ ^ ^ ^ |||||| | | | | \||||/ \ | / +------Final character \||/ \ | / CSI Selective ParametersThe octal representation of this string is:
033 0133 060 073 064 073 065 0155 <ESC> [ 0 ; 4 ; 5 mAlternate sequences which will accomplish the same thing:
<ESC>[;4;m
<ESC>[m
<ESC>[4m
<ESC>[5m
<ESC>[0;04;005m
The following text conforms to these formatting conventions:
{Pn} | A string of digits representing a numerical value. |
{Ps} | A character that selects an item from a list. |
{a-z} | Any lowercase sequence of one44 or more characters in braces represent a value to be entered (as in {Pn}), and the name in the braces will be referred to in explanatory text. |
The following attributes below have the following meaning:
CPR | Cursor Position Report | VT100 ANSI Reply | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn ; Pn R | Default: 1 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The CPR sequence reports the active position by means of the
parameters. This sequence has two parameter values, the first
specifying the line and the second specifying the column. The default
condition with no parameters present, or parameters of 0, is equivalent
to a cursor at home position.
The numbering of the lines depends upon the state of the Origin Mode (DECOM). This control sequence is sent in reply to a device status report (DSR) command sent from the host. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CUB | Cursor Backward | VT100 ANSI Command Event | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn D | Default: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The CUB sequence move the cursor to the left. The distance moved is determined by the parameter. If the parameter missing, zero, or one, the cursor is moved one position. The cursor cannot be moved past the left margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CUD | Cursor Down | VT100 ANSI Command Event | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn B | Default: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Moves the cursor down a number of lines as specified in the parameter without changing columns. The cursor cannot be moved past the bottom margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CUF | Cursor Foreward | VT100 ANSI Command Event | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn C | Default: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The CUF sequence moves the cursor to the right a number of positions specified in the parameter. The cursor cannot be moved past the right margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CUP | Cursor Position | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn ; Pn H | Default: 1 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The CUP sequence moves the curor to the position specified by the
parameters. The first parameter specifies the line, and the second
specifies the column. A value of zero for either line or column moves
the cursor to the first line or column in the display. The default
string (<ESC>H) homes the cursor. In the VT100, this command behaves
identically to it's format effector counterpart, HVP.
The numbering of the lines depends upon the state of the Origin Mode (DECOM). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CUU | Cursor Up | VT100 ANSI Command Event | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn A | Default: 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Moves the cursor up without changing columns. The cursor is moved up a number of lines as indicated by the parameter. The cursor cannot be moved beyond the top margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DA | Device Attributes | VT100 ANSI Command Reply | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn c | Default: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The host requests the VT100 to send a DA sequence to indentify
itself. This is done by sending the DA sequence with no parameters,
or with a parameter of zero.
Response to the request described above (VT100 to host) is generated by the VT100 as a DA control sequence with the numeric parameters as follows:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECALN | Screen Alignment Display | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC # 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This command causes the VT100 to fill it's screen with uppercase Es for screen focus and alignment. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECANM | ANSI/VT52 Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the SM and RM control sequences. The reset state causes only VT52 compatible escape sequences to be recognized. The set state causes only ANSI compatible escape sequences to be recognized. See the entries for MODES, SM, and RM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECARM | Auto Repeat Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the SM and RM control sequences. The reset state causes no keyboard keys to auto-repeat, the set state causes most of them to. See MODES, SM, and RM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECAWM | Autowrap Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the SM and RM control sequences. The reset state prevents the cursor from moving when characters are recieved while at the right margin. The set state causes these characters to advance to the next line, causing a scroll up if required and permitted. See MODES, SM, and RM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECCKM | Cursor Keys Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the SM and RM control requences. This mode is only effective when the terminal is in keypad application mode (DECKPAM) and the ANSI/VT52 mode (DECANM) is set. Under these conditions, if this mode is reset, the cursor keys will send ANSI cursor control commands. If setm the cursor keys will send application function commands. See MODES, RM, and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECCOLM | Column Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the SM and RM control sequences. The reset state causes an 80 column screen to be used. The set state causes a 132 column screen to be used. See MODES, RM, and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECDHL | Double Height Line | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC # 3 Top Half
ESC # 4 Bottom Half
These sequences cause the line containing the cursor to become the top or bottom half of a double-height, double width line. The sequences should be used in pairs on adjacent lines with each line containing the same character string. If the line was single width single height, all characters to the right of the center of the screen will be lost. The cursor remains over the same character position, unless it would be to the right of the right margin, in which case it is moved to the right margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECDWL | Double Width Line | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC # 6 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This causes the line that contains the cursor to become double-width single height. If the line was single width, all characters ro the right of the center of the screen will be lost. The cursor remains over the same character position, unless it would be to the right of the right margin, in which case it is moved to the right margin. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECID | Identify Terminal | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC Z | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This sequence causes the same response as the DA sequence. This sequence will not be supported in future models. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECINLM | Interlace Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to the RM and SM control sequences. The reset state (non-interlace) causes the video processor to display 240 scan lines per frame. The set state causes the video processor to display 480 scan lines per screen. See MODES, RM, and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECKPAM | Keypad Application Mode | VT100 DEC Command Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC = | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The auxiliary keypad keys will transmit control sequences. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECKPNM | Keypad Numeric Mode | VT100 DEC Mode Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC > | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The auxiliary keypad keys will send ASCII codes corresponding to the characters engraved on their keys. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECLL | Load LEDs | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps q | Default: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Load the four programmable LEDs on the keyboard according to the parameter(s).
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECOM | Origin Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to SM and RM
control sequences. The reset
state causes the origin (or home position) to be the upper left
character position of the screen. Line and column numbers are,
therefore, independent of current margin settings. The cursor may be
positioned outside the margins with a cursor position (CUP) or
horizontal and vertical position (HVP) control.
The set state causes the origin to be at the upper left character position within the current margins. Line and column numbers are, therefore, relative to the current margin settings. The cursor cannot be positioned outside of the margins. The cursor is moved to the new home position when this mode is set or reset. Lines and columns are numbered consecutively, with the origin being line 1, column 1. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECRC | Restore Cursor | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC 8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This sequence causes the previously saved cursor position, graphic rendition, and character set to be restored. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECREPTPARM | Report Terminal Parameters | VT100 ANSI Reply | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECREQTPARM | Request Terminal Parameters | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECSC | Save Cursor | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC 7 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Causes the cursor position, graphic rendition, and character set to be saved. (See DECRC) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECSCLM | Scrolling Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to RM and SM control sequences. The reset state causes scrolls to "jump" instantaneuously one line at a time. The set state causes the scrolls to be "smooth", and scrolls at a maximum rate of siz lines/sec. See MODES, RM, and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECSCNM | Screen Mode | VT100 DEC Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a private parameter to RM and SM control sequences. The reset state causes the screen to be black with white characters; the set state causes the screen to be white with black characters. See MODES, RM, and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECSTBM | Set Top and Bottom Margins | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn ; Pn r | Default: 1 ScreenLines | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This sequence sets the top and bottom margins to define the scrolling
region. The first parameter is the line number of the first line in
the scrolling region; the second parameter is the line number of the
bottom line of the scrolling region.
Default is the entire screen (no margins). The minimum region allowed is two lines, i.e., the top line must be less than the bottom. The cursor is placed in the home position (See DECOM). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECSWL | Single-width Line | VT100 DEC Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC # 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This causes the line which contains the cursor to become single-width, single-height. The cursor remains on the same character position. This is the default condition for all new lines on the screen. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DECTST | Invoke Confidence Test | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ 2 ; Ps y | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ps is the parameter indicating the test to be done. It is computed by
taking the weight indicated for each desired test and adding them
together. If Ps is 0, no test is performed but the VT100 is reset.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DSR | Device Status Report | VT100 ANSI Command Reply | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps n | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Requests and reports the general status of the VT100 according to the
following parameters:
DSR with a parameter of 0 or 3 is always sent as a response to a requesting DSR with a parameter of 5. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ED | Erase in Display | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps J | Default: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This sequence erases some or all of the characters in the display
according to the parameter. Any complete line erased by this sequence
will return that line to single width mode.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EL | Erase in Line | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps K | Default: 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Erases some or all characters in the active line, according to the
parameter.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HTS | Horizontal Tab Set | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC H | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Set a tab stop at the current cursor position. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
HVP | Horizontal and Vertical Position | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Pn ; Pn f | Default: 1 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Moves the cursor to the position specified by the parameters. The first parameter specifies the line, and the second specifies the column. A parameter of 0 or 1 causes the active position to move to the first line or column in the display. In the VT100, this control behaves identically with it's editor counterpart, CUP. The numbering of hte lines depends upon the state of the Origin Mode (DECOM). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
IND | Index | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC D | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This sequence causes the cursor to move downward one line without changing the column. If the cursor is at the bottom margin, a scroll up is performed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
LNM | Line Feed/New Line Mode | VT100 ANSI Mode | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is a parameter to SM and RM control sequences.
The reset state
causes the interpretation of the <LF> character to imply only vertical
movement of the cursor and causes the RETURN key to send the single
code <CR>.
The set state causes the <LF> character to imply movement to the first position of the following line, and causes the RETURN key to send the code pair <CR><LF>. This is the New Line option. This mode does not affect the Index (IND) or the next line (NEL) format effectors. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NEL | Next Line | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC E | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This causes the cursor to move to the first position of the next line down. If the cursor is on the bottom line, a scroll is performed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RI | Reverse Index | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC M | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Move the cursor up one line without changing columns. If the cursor is on the top line, a scroll down is performed. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RIS | Reset to Initial State | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC c | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets the VT100 to the state is has upon power up. This also causes the execution of the POST and signal INT H to be asserted briefly. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RM | Reset Mode | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps ; ... l | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Resets one or more VT100 modes as specified by each selective parameter in the parameter string. Each mode to be reset is specified by a separate parameter. See MODES and SM. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SCS | Select Character Set | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<ESC;>( {Cs} Select G0 Set <ESC;>) {Cs} Select G1 Set
The appropriate D0 and G1 character sets are designated from one of the five possible sets. The G0 and G1 sets are invokedd by the characters <SI> and <SO>, respectively.
The United Kingdom and ASCII sets conform to the "ISO international register of character sets to be used with escape sequences". The other sets are private character sets. Special graphics means that the graphic characters fpr the codes 0137 to 0176 are replaced with other characters. The specified character set will be used until another SCS is recieved. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SGR | Select Graphic Rendition | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps ; ... m | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Invoke the graphic rendition specified by the parameter(s). All
following characters transmitted to the VT100 are rendered according
to the parameter(s) until the next occurrence of an SGR.
All other parameter values are ignored. Without the Advanced Video Option, only one type of character attribute is possible, as determined by the cursor selection; in that case specifying either underscore or reverse will activate the currently selected attribute. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SM | Set Mode | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps ; ... h | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Causes one or more modes to be set within the VT100 as specified by
each selective parameter string. Each mode to be set is specified by a
seperate parameter. A mode is considered set until it is reset by a
Reset Mode (RM) control sequence.
See RM and MODES.
[Editor's note: The original DEC VT100 documentation EK-VT100-UG-003 erroneously omitted the "[" character from the SM sequence.] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TBC | Tabulation Clear | VT100 ANSI Command | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ESC [ Ps g | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If the parameter is missing or 0, this will clear the tab stop at the cursor's position. If it is 3, this will clear all of the tab stops. Any other parameter is ignored. |
Modes |
Parameter | Mnemonic | Function |
0 | Error (Ignored) | |
20 | LNM | Line Feed/New Line Mode |
Parameter | Mnemonic | Function |
0 | Error (Ignored) | |
1 | DECCKM | Cursor Key |
2 | DECANM | ANSI/VT52 |
3 | DECCOLM | Column |
4 | DECSCLM | Scrolling |
5 | DECSCNM | Screen |
6 | DECOM | Origin |
7 | DECAWM | Auto Wrap |
8 | DECARM | Auto Repeat |
9 | DECINLM | Interlace |
The following modes, which are specified in the ANSI standard, may be considered to be permanently set, permanently reset, or not applicable, as noted.
Mnemonic | Function | State |
CRM | Control Representation | Reset |
EBM | Editing Boundary | Reset |
ERM | Erasure | Set |
FEAM | Format Effector Action | Reset |
FETM | Format Effector Transfer | Reset |
GATM | Guarded Area Transfer | NA |
HEM | Horizontal Editing | NA |
IRM | Insertion-replacement | Reset |
KAM | Keyboard Action | Reset |
MATM | Multiple area transfer | NA |
PUM | Positioning Unit | Reset |
SATM | Selected Area Transfer | NA |
SRTM | Status Reporting Transfer | Reset |
TSM | Tabulation Stop | Reset |
TTM | Transfer Termination | NA |
VEM | Vertical Editing | NA |
Cursor Key | VT52 mode | ANSI mode w/cursor key mode reset |
ANSI mode w/cursor key mode set |
UP | <ESC>A | <ESC>[A | <ESC>OA |
DOWN | <ESC>B | <ESC>[B | <ESC>OB |
RIGHT | <ESC>C | <ESC>[C | <ESC>OC |
LEFT | <ESC>D | <ESC>[D | <ESC>OD |
|
|
NOTE 2: Codes 0157-0163 give better vertical resolution than dashes and underlines when drawing graphs; using these segments, 120 x 132 resolution may be obtained in 132 column mode with the Advanced Video Option installed.
Petri Virekoski has posted the following document to
comp.terminals in 1993.
I have htmlized and edited the document 1998 to provide the
KTerm
program with proper reference material.
I'm mentioning the original author here only to honor his work,
he has nothing to do with KTerm
, so do not bother
him with any questions.
This information is largely derived from DEC document EK-VT100-UG-003,
the original manual for the VT100.
Most so-called VT100 implementations (both stand-alone terminals and PC emulators) actually implement more controls than are given here. The minimal standard is really the slightly more advanced VT102 terminal.
...RSS
Path: cs.utk.edu!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!pipex!sunic !trane.uninett.no!news.eunet.no!nuug!news.eunet.fi!funic!nntp.hut.fi !lk-hp-14.hut.fi!pev From: pev@lk-hp-14.hut.fi (Petri Virekoski) Newsgroups: comp.terminals Subject: VT100 control info Date: 11 Sep 1993 12:43:22 GMT Organization: Helsinki University of Technology Lines: 878 Distribution: world Message-ID: <26sh5a@nntp.hut.fi> NNTP-Posting-Host: lk-hp-14.hut.fiOK. I finally found this on my local machine by doing a locate. Still haven't found any FTP site bearing this kind of information. I myself would need a similar file with extensions for VT200/VT220. Please do not address any complaints to me, since I just copied this file as I found it. There might be some escape sequences missing from the end because there was some carbage, but I don't know. Here goes...
This file describes information needed for controlling the VT100 terminal from a remote computer. All of the information was derived from the VT100 user's manual, Programmer's Information section. Full documentation can be obtain from DIGITAL'S Accessory and Supplies Group.
This text is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you want to have a reliable source of the topic concerned, you find the references to them listed in the reference section.
I've put this document together from several sources, htmlized and edited them to become a whole. All of the originals where postings on the comp.terminals. You can find them collected in http://www....
The original authors left the copyright open, but clearly intended to make their work public, so i feel free to make the above said use of it. They are namely:
___ ( /_)_---_------------------------------------------------- (_/ ( ! / ) Petri Virekoski ------ pev@vipu.hut.fi ------ -------!/---------------------------------------------------Lars Dölle, 1998