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,
ansi.sys
, for their OS, which became of some relevance in BBS style
telecommunication programs. One can view this as a small subset of the VT100
emulation, with some additions, of cause.
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.
Currently, the body of this document is mainly a concept data base, that referes to the VT100 component of the emulation. Though the codes accepted by konsole are now clearly indicated, a comparison to the xterm and Linux console emulation is missing.
The konsole emulation sources is not linked closely with it's documentation, and, also accurate at the time of writing, it can still fall slightly appart. Work is currently in progress to fix this issue. A decent indexing is on the way also.
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 Sequences |
Refering both to their origin and form, one can group the overall encoding schemes as follows:
Name | Pattern | Scope | Comment |
Printable Ascii Characters | 32..126 | ASCII ECMA | This is the most original pattern of all. The characters to be displayed are passed over the chanel and are interpreted by the terminal (emulation) as instructions to display the corresponding glyph of the ascii character set. Contempory emulations include the upper half (128..255) of the extentions to the national ascii character sets, also. |
Ascii Control Characters | 0..26,28..31,127 | ASCII ECMA | Ascii defines some non-printable, but format effecting characters, too. Depending on the emulation, at least some of them are given a meaning. The typically implemented ones are those that are handled by a teletype like device. |
Simple Escape Sequence | ESC C | ECMA | These sequences are made up from an ESC character followed by exactly one other character in the range ???..???. |
CSI Sequence | ESC [ Parameters {I} C | ECMA | |
The remaining codes are nonstandard but traditionalized hacks.
| |||
DEC hacks | ESC C D | VT100 | |
XTERM hacks | ESC ] Pn ; text BEL | XTERM | |
VT52 uses a different (incompatible) set of escape codes. VT100 includes the VT52 emulation as a mode.
| |||
Simple Escape Sequence | ESC C | VT52 | |
Complex Escape Sequence | ESC Y X Y | VT52 |
FIXME: I've to check this w.r.t. the "I" component in modern (EMCA) CSI sequences. Evtl. this is not compatible anymore.
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
In one first the first character is a hash (#) and the following a digit. This command group is used to denote VT100 specific instructions and can safely be sonsidered to be obsolete. See DECALN, DECDHLB, DECDHLT, DECDWL and DECSWL.
The second one is used to specify character set mappings (see SCS). A CSI instruction to do this is specified in ECMA, and this should be used as a replacement.
The Concept Data Base |
All of the following control sequences are transmitted from the Host to VT100 unless otherwise noted. All of the control sequences are a subset of those defined in ANSI X 3.64 1977 and ANSI X 3.41 1974.
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 one or more characters represent a value to be entered (as in Pn), and the name in the will be referred to in explanatory text. |
The following attributes below have the following meaning:
Host to Terminal (Instructions by Group) |
Commands (Character Display Operation) | ||||
PRN | {0x20..0x7e,0xa0..0xff} | Printable Characters | ||
Commands (Rendition related status) | ||||
LS0 | CTL | N | Lock Shift Zero (Shift Out - SO) | |
LS1 | CTL | O | Lock Shift One (Shift In - SI) | |
LS2 | ESC | n | Lock Shift Two | |
LS3 | ESC | o | Lock Shift Three | |
SCS | SCS | {Pc;Cs} | Select Character Set | |
SGR | CSI | m | {Ps;...} | Select Graphic Rendition |
Commands (Cursor) | ||||
BS | CTL | H | Back Space | |
CHA | CSI | G | {Pn} | Cursor Horizontal Absolute |
CR | CTL | M | Carriage Return | |
CUB | CSI | D | {Pn} | Cursor Backward |
CUD | CSI | B | {Pn} | Cursor Down |
CUF | CSI | C | {Pn} | Cursor Foreward |
CUP | CSI | H | {Pn;Pn} | Cursor Position |
CUU | CSI | A | {Pn} | Cursor Up |
FF | CTL | L | Form Feed | |
HT | CTL | I | Horizontal Tabulation | |
HVP | CSI | f | {Pn;Pn} | Horizontal and Vertical Position |
IND | ESC | D | Index | |
LF | CTL | J | Line Feed | |
NEL | ESC | E | Next Line | |
RI | ESC | M | Reverse Index | |
VPA | CSI | d | {Pn} | Vertical Position Absolute |
VT | CTL | K | Vertical Tabulation | |
Commands (Cursor related status) | ||||
DECRC | ESC | 8 | Restore Cursor | |
DECSC | ESC | 7 | Save Cursor | |
DECSTBM | CSI | r | {Pn;Pn} | Set Top and Bottom Margins |
HTS | ESC | H | Horizontal Tab Set | |
TBC | CSI | g | {Ps} | Tabulation Clear |
Commands (Edit) | ||||
DCH | CSI | P | {Pn} | Delete Character |
DL | CSI | M | {Pn} | Delete Line |
ECH | CSI | X | {Pn} | Erase Character |
ED | CSI | J | {Ps} | Erase in Display |
EL | CSI | K | {Ps} | Erase in Line |
ICH | CSI | @ | {Pn} | Insert Character |
IL | CSI | L | {Pn} | Insert Line |
Commands (Miscellaneous) | ||||
BEL | CTL | G | Bell | |
CAN | CTL | X | Cancel | |
DECALN | HSH | 8 | Screen Alignment Display | |
DECTST | CSI | y | {2;Ps} | Invoke Confidence Test |
SUB | CTL | Z | Substitute | |
Commands (General mode setting) | ||||
DECRST | PRI | l | {Ps;...} | DEC Private Reset Mode |
DECSET | PRI | h | {Ps;...} | DEC Private Set Mode |
RM | CSI | l | {Ps;...} | Reset Mode |
SM | CSI | h | {Ps;...} | Set Mode |
XTERESTORE | PRI | r | {Ps;...} | XTerm Private Restore Mode |
XTESAVE | PRI | s | {Ps;...} | XTerm Private Save Mode |
Commands (Miscellaneous status) | ||||
DECKPAM | ESC | = | Keypad Application Mode | |
DECKPNM | ESC | > | Keypad Numeric Mode | |
RIS | ESC | c | Reset to Initial State | |
VT52ANSI | ESC | < | VT52 ANSI Ansi Mode | |
Commands (VT52) | ||||
VT52CUB | ESC | D | VT52 Cursor Back | |
VT52CUD | ESC | B | VT52 Cursor Down | |
VT52CUF | ESC | C | VT52 Cursor Forward | |
VT52CUH | ESC | H | VT52 Cursor Home | |
VT52CUP | VT5 | {X;Y} | VT52 Cursor Position | |
VT52CUU | ESC | A | VT52 Cursor Up | |
VT52EDL | ESC | K | VT52 Clear To End Of Line | |
VT52EDS | ESC | J | VT52 Clear To End Of Screen | |
VT52KPAM | ESC | = | VT52 Enter alternate keypad mode | |
VT52KPNM | ESC | > | VT52 Exit alternate keypad mode | |
VT52REP | ESC | Z | VT52 Report Terminal Type | |
VT52RI | ESC | I | VT52 Reverse Index | |
VT52SCSF | ESC | F | VT52 Select special graphics character set | |
VT52SCSG | ESC | G | VT52 Select ASCII character set | |
Commands (Not implemented) | ||||
DECDHLB | HSH | 4 | Double Height Line (Bottom) | |
DECDHLT | HSH | 3 | Double Height Line (Top) | |
DECDWL | HSH | 6 | Double Width Line | |
DECLL | CSI | q | {Ps;...} | Load LEDs |
DECSWL | HSH | 5 | Single-width Line | |
MC | CSI | i | {Pn} | Media Copy |
Commands (Ignored) | ||||
ACK | CTL | F | Acknowledge | |
DC2 | CTL | R | Device Control Two | |
DC3 | CTL | S | Device Control Three | |
DC4 | CTL | T | Device Control Four | |
DEL | DEL | Delete Character | ||
DLE | CTL | P | Data Link Escape | |
EM | CTL | Y | End Of Medium | |
EOT | CTL | D | End Of Transmission | |
ETB | CTL | W | End Of Transmission Block | |
ETX | CTL | C | End Of Text | |
FS | CTL | \ | File Separator (IS4 - Information Separator Four) | |
GS | CTL | ] | Group Separator (IS3 - Information Separator Three) | |
NAK | CTL | U | Negative Acknowledge | |
NUL | CTL | @ | Null | |
RS | CTL | ^ | Record Separator (IS2 - Information Separator Two) | |
SOH | CTL | A | Start Of Heading | |
STX | CTL | B | Start Of Text | |
SYN | CTL | V | Synchronous Idle | |
US | CTL | _ | Unit Separator (IS1 - Information Separator One) | |
Commands (Requests) | ||||
DA | CSI | c | {Pn} | Device Attributes Request |
DECID | ESC | Z | Identify Terminal | |
DECREQTPARM | CSI | x | {Ps} | Request Terminal Parameters |
DSR | CSI | n | {Ps} | Device Status Report |
ENQ | CTL | E | Enquiry |
Host to Terminal (Instructions by Code) |
CSI codes | ||||
ICH | CSI | @ | {Pn} | Insert Character |
CUU | CSI | A | {Pn} | Cursor Up |
CUD | CSI | B | {Pn} | Cursor Down |
CUF | CSI | C | {Pn} | Cursor Foreward |
CUB | CSI | D | {Pn} | Cursor Backward |
CHA | CSI | G | {Pn} | Cursor Horizontal Absolute |
CUP | CSI | H | {Pn;Pn} | Cursor Position |
ED | CSI | J | {Ps} | Erase in Display |
EL | CSI | K | {Ps} | Erase in Line |
IL | CSI | L | {Pn} | Insert Line |
DL | CSI | M | {Pn} | Delete Line |
DCH | CSI | P | {Pn} | Delete Character |
CPR | CSI | R | {Pn;Pn} | Cursor Position Report |
ECH | CSI | X | {Pn} | Erase Character |
DA | CSI | c | {Pn} | Device Attributes Request |
VPA | CSI | d | {Pn} | Vertical Position Absolute |
HVP | CSI | f | {Pn;Pn} | Horizontal and Vertical Position |
TBC | CSI | g | {Ps} | Tabulation Clear |
SM | CSI | h | {Ps;...} | Set Mode |
MC | CSI | i | {Pn} | Media Copy |
RM | CSI | l | {Ps;...} | Reset Mode |
SGR | CSI | m | {Ps;...} | Select Graphic Rendition |
DSR | CSI | n | {Ps} | Device Status Report |
DECLL | CSI | q | {Ps;...} | Load LEDs |
DECSTBM | CSI | r | {Pn;Pn} | Set Top and Bottom Margins |
DECREQTPARM | CSI | x | {Ps} | Request Terminal Parameters |
DECREPTPARM | CSI | x | {sol;par;nbits;xspd;rspd;cmul;flags} | Report Terminal Parameters |
DECTST | CSI | y | {2;Ps} | Invoke Confidence Test |
CTL codes | ||||
NUL | CTL | @ | Null | |
SOH | CTL | A | Start Of Heading | |
STX | CTL | B | Start Of Text | |
ETX | CTL | C | End Of Text | |
EOT | CTL | D | End Of Transmission | |
ENQ | CTL | E | Enquiry | |
ACK | CTL | F | Acknowledge | |
BEL | CTL | G | Bell | |
BS | CTL | H | Back Space | |
HT | CTL | I | Horizontal Tabulation | |
LF | CTL | J | Line Feed | |
VT | CTL | K | Vertical Tabulation | |
FF | CTL | L | Form Feed | |
CR | CTL | M | Carriage Return | |
LS0 | CTL | N | Lock Shift Zero (Shift Out - SO) | |
LS1 | CTL | O | Lock Shift One (Shift In - SI) | |
DLE | CTL | P | Data Link Escape | |
DC1 | CTL | Q | Device Control One | |
DC2 | CTL | R | Device Control Two | |
DC3 | CTL | S | Device Control Three | |
DC4 | CTL | T | Device Control Four | |
NAK | CTL | U | Negative Acknowledge | |
SYN | CTL | V | Synchronous Idle | |
ETB | CTL | W | End Of Transmission Block | |
CAN | CTL | X | Cancel | |
EM | CTL | Y | End Of Medium | |
SUB | CTL | Z | Substitute | |
ESC | CTL | [ | Escape | |
FS | CTL | \ | File Separator (IS4 - Information Separator Four) | |
GS | CTL | ] | Group Separator (IS3 - Information Separator Three) | |
RS | CTL | ^ | Record Separator (IS2 - Information Separator Two) | |
US | CTL | _ | Unit Separator (IS1 - Information Separator One) | |
DEL codes | ||||
DEL | DEL | Delete Character | ||
ESC codes | ||||
DECSC | ESC | 7 | Save Cursor | |
DECRC | ESC | 8 | Restore Cursor | |
VT52ANSI | ESC | < | VT52 ANSI Ansi Mode | |
VT52KPAM | ESC | = | VT52 Enter alternate keypad mode | |
VT52KPNM | ESC | > | VT52 Exit alternate keypad mode | |
VT52CUU | ESC | A | VT52 Cursor Up | |
VT52CUD | ESC | B | VT52 Cursor Down | |
VT52CUF | ESC | C | VT52 Cursor Forward | |
VT52CUB | ESC | D | VT52 Cursor Back | |
NEL | ESC | E | Next Line | |
VT52SCSF | ESC | F | VT52 Select special graphics character set | |
VT52SCSG | ESC | G | VT52 Select ASCII character set | |
HTS | ESC | H | Horizontal Tab Set | |
VT52RI | ESC | I | VT52 Reverse Index | |
VT52EDS | ESC | J | VT52 Clear To End Of Screen | |
VT52EDL | ESC | K | VT52 Clear To End Of Line | |
RI | ESC | M | Reverse Index | |
DECID | ESC | Z | Identify Terminal | |
RIS | ESC | c | Reset to Initial State | |
LS2 | ESC | n | Lock Shift Two | |
LS3 | ESC | o | Lock Shift Three | |
HSH codes | ||||
DECDHLT | HSH | 3 | Double Height Line (Top) | |
DECDHLB | HSH | 4 | Double Height Line (Bottom) | |
DECSWL | HSH | 5 | Single-width Line | |
DECDWL | HSH | 6 | Double Width Line | |
DECALN | HSH | 8 | Screen Alignment Display | |
PRI codes | ||||
DECDA | PRI | c | {1;Pn} | Device Attributes Reply |
DECSET | PRI | h | {Ps;...} | DEC Private Set Mode |
DECRST | PRI | l | {Ps;...} | DEC Private Reset Mode |
XTERESTORE | PRI | r | {Ps;...} | XTerm Private Restore Mode |
XTESAVE | PRI | s | {Ps;...} | XTerm Private Save Mode |
PRN codes | ||||
PRN | {0x20..0x7e,0xa0..0xff} | Printable Characters | ||
SCS codes | ||||
SCS | SCS | {Pc;Cs} | Select Character Set | |
VT5 codes | ||||
VT52CUP | VT5 | {X;Y} | VT52 Cursor Position |
Terminal to Host |
Replies | ||||
CPR | CSI | R | {Pn;Pn} | Cursor Position Report |
DECDA | PRI | c | {1;Pn} | Device Attributes Reply |
DECREPTPARM | CSI | x | {sol;par;nbits;xspd;rspd;cmul;flags} | Report Terminal Parameters |
DSR | CSI | n | {Ps} | Device Status Report |
Events | ||||
CUB | CSI | D | {Pn} | Cursor Backward |
CUD | CSI | B | {Pn} | Cursor Down |
CUF | CSI | C | {Pn} | Cursor Foreward |
CUU | CSI | A | {Pn} | Cursor Up |
KEYBOARD | Keyboard Events | |||
MOUSE | Mouse Events |
Modes |
Modes | ||||
DECANM | ANSI/VT52 Mode | |||
DECARM | Auto Repeat Mode | |||
DECAWM | Autowrap Mode | |||
DECCKM | Cursor Keys Mode | |||
DECCOLM | Column Mode | |||
DECINLM | Interlace Mode | |||
DECKPAM | ESC | = | Keypad Application Mode | |
DECKPNM | ESC | > | Keypad Numeric Mode | |
DECOM | Origin Mode | |||
DECRC | ESC | 8 | Restore Cursor | |
DECRST | PRI | l | {Ps;...} | DEC Private Reset Mode |
DECSC | ESC | 7 | Save Cursor | |
DECSCLM | Scrolling Mode | |||
DECSCNM | Screen Mode | |||
DECSET | PRI | h | {Ps;...} | DEC Private Set Mode |
DECSTBM | CSI | r | {Pn;Pn} | Set Top and Bottom Margins |
HTS | ESC | H | Horizontal Tab Set | |
LNM | Line Feed/New Line Mode | |||
LS0 | CTL | N | Lock Shift Zero (Shift Out - SO) | |
LS1 | CTL | O | Lock Shift One (Shift In - SI) | |
LS2 | ESC | n | Lock Shift Two | |
LS3 | ESC | o | Lock Shift Three | |
RIS | ESC | c | Reset to Initial State | |
RM | CSI | l | {Ps;...} | Reset Mode |
SCS | SCS | {Pc;Cs} | Select Character Set | |
SGR | CSI | m | {Ps;...} | Select Graphic Rendition |
SM | CSI | h | {Ps;...} | Set Mode |
TBC | CSI | g | {Ps} | Tabulation Clear |
VT52ANSI | ESC | < | VT52 ANSI Ansi Mode | |
XTERESTORE | PRI | r | {Ps;...} | XTerm Private Restore Mode |
XTESAVE | PRI | s | {Ps;...} | XTerm Private Save Mode |
Appendix A - Notion Details |
ACK | Acknowledge | VT100 XTERM Linux KONSOLE | ||||
0x06
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
BEL | Bell | VT100 | ||||
0x07
| ||||||
Sound bell | ||||||
Instruction | Scope | Operation | Args | |||
gui | Bell | |||||
BS | Back Space | VT100 | ||||
0x08
| ||||||
Move cursor to the left one position, unless it is at the left margin, in which case no action is taken. | ||||||
Instruction | Scope | Operation | Args | |||
scr | BackSpace | |||||
CAN | Cancel | VT100 | ||||
0x18
| ||||||
If sent during a control sequence, the sequence id immediately terminated and not executed. It also causes the error character (checkerboard) to be displayed. | ||||||
Instruction | Scope | Operation | Args | |||
scr | ShowCharacter | 2 | ||||
CHA | Cursor Horizontal Absolute | ECMA KONSOLE | ||||
ESC [ Pn G
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorX | p | ||||
CPR | Cursor Position Report | ECMA VT100 | ||||
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. | ||||||
CR | Carriage Return | VT100 | ||||
0x0d
| ||||||
Move the cursor to the left margin of the current line. | ||||||
Instruction | Scope | Operation | Args | |||
scr | Return | |||||
CUB | Cursor Backward | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorLeft | p | ||||
CUD | Cursor Down | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorDown | p | ||||
CUF | Cursor Foreward | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorRight | p | ||||
CUP | Cursor Position | ECMA VT100 | ||||
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). | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorYX | p,q | ||||
CUU | Cursor Up | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorUp | p | ||||
DA | Device Attributes Request | ECMA VT100 | ||||
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. The device replies by (DECDA). | ||||||
Instruction | Scope | Operation | Args | |||
emu | reportTerminalType | |||||
DC1 | Device Control One | VT100 | ||||
0x11
| ||||||
Causes terminal to resume transmission (XON). | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DC2 | Device Control Two | VT100 XTERM Linux KONSOLE | ||||
0x12
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DC3 | Device Control Three | VT100 XTERM Linux KONSOLE | ||||
0x13
| ||||||
Causes terminal to stop transmitting all codes except XOFF and XON (XOFF). | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DC4 | Device Control Four | VT100 XTERM Linux KONSOLE | ||||
0x14
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DCH | Delete Character | ECMA KONSOLE | ||||
ESC [ Pn P
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | deleteChars | p | ||||
DECALN | Screen Alignment Display | VT100 | ||||
ESC # 8
| ||||||
This command causes the VT100 to fill it's screen with uppercase Es for screen focus and alignment. | ||||||
Instruction | Scope | Operation | Args | |||
scr | helpAlign | |||||
DECANM | ANSI/VT52 Mode | VT100 | ||||
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, RM and VT52ANSI. | ||||||
Instruction | Scope | Operation | Args | |||
emu | setMode | MODE_Ansi | ||||
DECARM | Auto Repeat Mode | VT100 | ||||
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 | ||||
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 | ||||
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 | ||||
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. | ||||||
DECDA | Device Attributes Reply | VT100 | ||||
ESC [ ? 1;Pn c
| ||||||
Response to the DA request (VT100 to host) is generated by the VT100 as a DECDA control sequence with the numeric parameters as follows: | ||||||
Pn | Meaning | |||||
0 | No options | |||||
1 | Processor Option (STP) | |||||
2 | Advanced Video Option (AVO) | |||||
3 | AVO and STP | |||||
4 | Graphics Option (GPO) | |||||
5 | GPO and STP | |||||
6 | GPO and AVO | |||||
DECDHLB | Double Height Line (Bottom) | VT100 | ||||
ESC # 4
| ||||||
This sequence cause the line containing the cursor to become the
bottom half of a double-height, double width line.
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.
DECDHLB and DECDHLT should be used in pairs on adjacent lines with each line containing the same character string. | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DECDHLT | Double Height Line (Top) | VT100 | ||||
ESC # 3
| ||||||
This sequence cause the line containing the cursor to become the top
half of a double-height, double width line.
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.
DECDHLB and DECDHLT should be used in pairs on adjacent lines with each line containing the same character string. | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DECDWL | Double Width Line | VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DECID | Identify Terminal | VT100 | ||||
ESC Z
| ||||||
This sequence causes the same response as the DA sequence. This sequence will not be supported in future models. | ||||||
Instruction | Scope | Operation | Args | |||
emu | reportTerminalType | |||||
DECINLM | Interlace Mode | VT100 | ||||
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 | ||||
ESC =
| ||||||
The auxiliary keypad keys will transmit control sequences. | ||||||
Instruction | Scope | Operation | Args | |||
emu | setMode | MODE_AppKeyPad | ||||
DECKPNM | Keypad Numeric Mode | VT100 | ||||
ESC >
| ||||||
The auxiliary keypad keys will send ASCII codes corresponding to the characters engraved on their keys. | ||||||
Instruction | Scope | Operation | Args | |||
emu | resetMode | MODE_AppKeyPad | ||||
DECLL | Load LEDs | VT100 | ||||
ESC [ Ps;... q
| Default: 0 | |||||
Load the four programmable LEDs on the keyboard according to the parameter(s). | ||||||
Ps | Meaning | |||||
0 | Clear All LEDs | |||||
1 | Light L1 | |||||
2 | Light L2 | |||||
3 | Light L3 | |||||
4 | Light L4 | |||||
DECOM | Origin Mode | VT100 | ||||
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 | ||||
ESC 8
| ||||||
This sequence causes the previously saved cursor position, graphic rendition, and character set to be restored. | ||||||
Instruction | Scope | Operation | Args | |||
scr | restoreCursor | |||||
DECREPTPARM | Report Terminal Parameters | ECMA VT100 | ||||
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: | ||||||
cmul | Meaning | |||||
1 | The bit rate multiplier is 16 | |||||
flags | Meaning | |||||
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. | |||||
nbits | Meaning | |||||
1 | 8 bits per character | |||||
2 | 7 bits per character | |||||
par | Meaning | |||||
1 | No parity set | |||||
4 | Parity set and odd | |||||
5 | Parity set and even | |||||
sol | Meaning | |||||
1 | This message is a report. | |||||
2 | This message is a report, and the terminal is only reporting on request. | |||||
speed | Meaning (xspd,rspd) | |||||
0 | Speed set to 50 bps | |||||
8 | Speed set to 75 bps | |||||
16 | Speed set to 110 bps | |||||
24 | Speed set to 134.5 bps | |||||
32 | Speed set to 150 bps | |||||
40 | Speed set to 200 bps | |||||
48 | Speed set to 300 bps | |||||
56 | Speed set to 600 bps | |||||
64 | Speed set to 1200 bps | |||||
72 | Speed set to 1800 bps | |||||
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 | |||||
DECREQTPARM | Request Terminal Parameters | ECMA VT100 | ||||
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. | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | emu | reportTerminalParms | 2 | Meaning | |
1 | konsole | emu | reportTerminalParms | 3 | Meaning | |
DECRST | DEC Private Reset Mode | VT100 KONSOLE | ||||
ESC [ ? Ps;... l
| ||||||
FIXME. explain | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
1 | konsole | emu | resetMode | MODE_AppCuKeys | Meaning | |
2 | konsole | emu | resetMode | MODE_Ansi | Meaning | |
3 | konsole | emu | setColumns | 80 | Meaning | |
4 | konsole | emu | Ignored | Meaning | ||
5 | konsole | scr | resetMode | MODE_Screen | Meaning | |
6 | konsole | scr | resetMode | MODE_Origin | Meaning | |
7 | konsole | scr | resetMode | MODE_Wrap | Meaning | |
8 | konsole | emu | Ignored | Meaning | ||
9 | konsole | emu | Ignored | Meaning | ||
25 | konsole | emu | resetMode | MODE_Cursor | Meaning | |
47 | konsole | emu | resetMode | MODE_AppScreen | Meaning | |
1000 | konsole | emu | resetMode | MODE_Mouse1000 | Meaning | |
1001 | konsole | emu | Ignored | Meaning | ||
1047 | konsole | emu | resetMode | MODE_AppScreen | Meaning | |
1048 | konsole | scr | restoreCursor | Meaning | ||
DECSC | Save Cursor | VT100 | ||||
ESC 7
| ||||||
Causes the cursor position, graphic rendition, and character set to be saved. (See DECRC) | ||||||
Instruction | Scope | Operation | Args | |||
scr | saveCursor | |||||
DECSCLM | Scrolling Mode | VT100 | ||||
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 | ||||
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. | ||||||
DECSET | DEC Private Set Mode | VT100 KONSOLE | ||||
ESC [ ? Ps;... h
| ||||||
FIXME. explain | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
1 | konsole | emu | setMode | MODE_AppCuKeys | Meaning | |
3 | konsole | emu | setColumns | 132 | Meaning | |
4 | konsole | emu | Ignored | Meaning | ||
5 | konsole | scr | setMode | MODE_Screen | Meaning | |
6 | konsole | scr | setMode | MODE_Origin | Meaning | |
7 | konsole | scr | setMode | MODE_Wrap | Meaning | |
8 | konsole | emu | Ignored | Meaning | ||
9 | konsole | emu | Ignored | Meaning | ||
25 | konsole | emu | setMode | MODE_Cursor | Meaning | |
47 | konsole | emu | setMode | MODE_AppScreen | Meaning | |
1000 | konsole | emu | setMode | MODE_Mouse1000 | Meaning | |
1001 | konsole | emu | Ignored | Meaning | ||
1047 | konsole | emu | setMode | MODE_AppScreen | Meaning | |
1048 | konsole | scr | saveCursor | Meaning | ||
DECSTBM | Set Top and Bottom Margins | VT100 | ||||
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). | ||||||
Instruction | Scope | Operation | Args | |||
scr | setMargins | p,q | ||||
DECSWL | Single-width Line | VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DECTST | Invoke Confidence Test | ECMA VT100 | ||||
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. | ||||||
Weight | Meaning | |||||
1 | POST (ROM checksum, RAM NVR, keyboardm and AVO) | |||||
2 | Data Loop Back (Loopback connector required) | |||||
3 | EIA Modem Control Test (Loopback connector req.) | |||||
4 | Repeat Testing until failure | |||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DEL | Delete Character | VT100 | ||||
0x7f
| ||||||
Ignored | ||||||
DL | Delete Line | ECMA KONSOLE | ||||
ESC [ Pn M
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | deleteLines | p | ||||
DLE | Data Link Escape | VT100 XTERM Linux KONSOLE | ||||
0x10
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
DSR | Device Status Report | ECMA VT100 | ||||
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. | ||||||
Ps | Direction | Meaning | ||||
0 | to host | Ready, no faults detected | ||||
3 | to host | Malfunction detected | ||||
5 | to VT100 | Report Status (using a DSR control sequence) | ||||
6 | to VT100 | Report Active Position (using a CPR sequence) | ||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
5 | konsole | emu | reportStatus | Meaning | ||
6 | konsole | emu | reportCursorPosition | Meaning | ||
ECH | Erase Character | ECMA KONSOLE | ||||
ESC [ Pn X
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | eraseChars | p | ||||
ED | Erase in Display | ECMA VT100 | ||||
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. | ||||||
Ps | Operation | |||||
0 | Erase from the cursor to the end of the screen. | |||||
1 | Erase from the start of the screen to the cursor. | |||||
2 | Erase the entire screen. | |||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | scr | clearToEndOfScreen | Meaning | ||
1 | konsole | scr | clearToBeginOfScreen | Meaning | ||
2 | konsole | scr | clearEntireScreen | Meaning | ||
EL | Erase in Line | ECMA VT100 | ||||
ESC [ Ps K
| Default: 0 | |||||
Erases some or all characters in the active line, according to the parameter. | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | scr | clearToEndOfLine | Meaning | ||
1 | konsole | scr | clearToBeginOfLine | Meaning | ||
2 | konsole | scr | clearEntireLine | Meaning | ||
EM | End Of Medium | VT100 XTERM Linux KONSOLE | ||||
0x19
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
ENQ | Enquiry | VT100 | ||||
0x05
| ||||||
Transmit the ANSWERBACK message. The answerback message can be loaded in SET-UP B (i.e. is a configurable string). | ||||||
Instruction | Scope | Operation | Args | |||
emu | reportAnswerBack | |||||
EOT | End Of Transmission | VT100 XTERM Linux KONSOLE | ||||
0x04
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
ESC | Escape | ECMA VT100 | ||||
0x1b
| ||||||
Introduces a control sequence. | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
ETB | End Of Transmission Block | VT100 XTERM Linux KONSOLE | ||||
0x17
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
ETX | End Of Text | VT100 XTERM Linux KONSOLE | ||||
0x03
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
FF | Form Feed | VT100 | ||||
0x0c
| ||||||
Same as LF. | ||||||
Instruction | Scope | Operation | Args | |||
emu | NewLine | |||||
FS | File Separator (IS4 - Information Separator Four) | VT100 XTERM Linux KONSOLE | ||||
0x1c
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
GS | Group Separator (IS3 - Information Separator Three) | VT100 XTERM Linux KONSOLE | ||||
0x1d
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
HT | Horizontal Tabulation | VT100 | ||||
0x09
| ||||||
Move cursor to the next tab stop, or to the right margin if no further tabs are set. | ||||||
Instruction | Scope | Operation | Args | |||
scr | Tabulate | |||||
HTS | Horizontal Tab Set | ECMA VT100 | ||||
ESC H
| ||||||
Set a tab stop at the current cursor position. | ||||||
Instruction | Scope | Operation | Args | |||
scr | changeTabStop | TRUE | ||||
HVP | Horizontal and Vertical Position | ECMA VT100 | ||||
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). | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorYX | p,q | ||||
ICH | Insert Character | ECMA KONSOLE | ||||
ESC [ Pn @
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | insertChars | p | ||||
IL | Insert Line | KONSOLE | ||||
ESC [ Pn L
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | insertLines | p | ||||
IND | Index | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | index | |||||
KEYBOARD | Keyboard Events | KONSOLE | ||||
FIXME. explain | ||||||
Key | Code | |||||
AltButton | "\033" | |||||
Return | MODE_NewLine ? "\r\n" : "\r" | |||||
Backspace | MODE_BsHack ? "\x7f" : "\x08" | |||||
Delete | MODE_BsHack ? "\033[3~" : "\x7f" | |||||
Up | !MODE_Ansi ?"\033A" : MODE_AppCuKeys ?"\033OA" : "\033[A" | |||||
Down | !MODE_Ansi ?"\033B" : MODE_AppCuKeys ?"\033OB" : "\033[B" | |||||
Right | !MODE_Ansi ?"\033C" : MODE_AppCuKeys ?"\033OC" : "\033[C" | |||||
Left | !MODE_Ansi ?"\033D" : MODE_AppCuKeys ?"\033OD" : "\033[D" | |||||
F1 | Xterm? "\033[11~": "\033[[A" | |||||
F2 | Xterm? "\033[12~": "\033[[B" | |||||
F3 | Xterm? "\033[13~": "\033[[C" | |||||
F4 | Xterm? "\033[14~": "\033[[D" | |||||
F5 | Xterm? "\033[15~": "\033[[E" | |||||
F6 | "\033[17~" | |||||
F7 | "\033[18~" | |||||
F8 | "\033[19~" | |||||
F9 | "\033[20~" | |||||
F10 | "\033[21~" | |||||
F11 | "\033[23~" | |||||
F12 | "\033[24~" | |||||
Home | "\033[7~" | |||||
End | "\033[8~" | |||||
Prior | "\033[5~" | |||||
Next | "\033[6~" | |||||
Insert | "\033[2~" | |||||
Control_Space | "\x00" | |||||
Control_Print | reportAnswerBack() | |||||
Ascii | Character | |||||
LF | Line Feed | VT100 | ||||
0x0a
| ||||||
Causes either a line feed or new line operation (See LNM.) | ||||||
Instruction | Scope | Operation | Args | |||
emu | NewLine | |||||
LNM | Line Feed/New Line Mode | ECMA VT100 | ||||
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. | ||||||
LS0 | Lock Shift Zero (Shift Out - SO) | VT100 | ||||
0x0e
| ||||||
Invoke the G1 character set, as designated by the SCS control sequence. | ||||||
Instruction | Scope | Operation | Args | |||
scr | useCharset | 1 | ||||
LS1 | Lock Shift One (Shift In - SI) | VT100 | ||||
0x0f
| ||||||
Invoke the G0 character set, as selected by the <ESC>( sequence. | ||||||
Instruction | Scope | Operation | Args | |||
scr | useCharset | 0 | ||||
LS2 | Lock Shift Two | KONSOLE | ||||
ESC n
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | useCharset | 2 | ||||
LS3 | Lock Shift Three | KONSOLE | ||||
ESC o
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | useCharset | 3 | ||||
MC | Media Copy | ECMA VT100 | ||||
ESC [ Pn i
| ||||||
FIXME. explain | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | emu | Ignored | Meaning | ||
MOUSE | Mouse Events | KONSOLE | ||||
FIXME. explain | ||||||
NAK | Negative Acknowledge | VT100 XTERM Linux KONSOLE | ||||
0x15
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
NEL | Next Line | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
scr | NextLine | |||||
NUL | Null | VT100 XTERM Linux KONSOLE | ||||
0x00
| ||||||
NUL is used as media- or time-fill. It is ignored by Konsole, but may be sensible for devices which requiere a recognizable amount of time to complete some commands (e.g. form feed on a non-buffering printing device). | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
Printable Characters | ECMA VT100 | |||||
0x20..0x7e,0xa0..0xff
| ||||||
Printable characters are basically displayed. They my cause a line
wrap when the cursor is already located at the end of the line.
The VT100 has a unique way to do this by producing a line wrap before the character would be displayed on the next line. This feature allows to print at the rightmost column without producing an implicit line feed. | ||||||
Instruction | Scope | Operation | Args | |||
scr | ShowCharacter | p | ||||
RI | Reverse Index | ECMA VT100 | ||||
ESC M
| ||||||
Move the cursor up one line without changing columns. If the cursor is on the top line, a scroll down is performed. | ||||||
Instruction | Scope | Operation | Args | |||
scr | reverseIndex | |||||
RIS | Reset to Initial State | ECMA VT100 | ||||
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. | ||||||
Instruction | Scope | Operation | Args | |||
emu | resetTerminal | |||||
RM | Reset Mode | ECMA VT100 | ||||
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. | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
4 | konsole | scr | resetMode | MODE_Insert | Meaning | |
20 | konsole | emu | resetMode | MODE_NewLine | LNM | |
RS | Record Separator (IS2 - Information Separator Two) | VT100 XTERM Linux KONSOLE | ||||
0x1e
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
SCS | Select Character Set | ECMA VT100 | ||||
ESC Pc;Cs
| ||||||
The appropriate D0 and G1 character sets are designated from one of the
five possible sets. The G0 and G1 sets are invoked by the characters
LS1 and LS0, 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. | ||||||
Cs | Character Set | |||||
A | United Kingdom Set | |||||
B | ASCII Set | |||||
0 | Special Graphics | |||||
1 | Alternate Character ROM (Standard Character Set) | |||||
2 | Alternate Character ROM (Special Graphics) | |||||
Pc | Character Selection | |||||
( | Select G0 Set | |||||
) | Select G1 Set | |||||
Instruction | Scope | Operation | Args | |||
emu | setCharset | p-'(',q | ||||
SGR | Select Graphic Rendition | ECMA VT100 | ||||
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. | ||||||
Ps | Operation | |||||
0 | Attributes Off | |||||
1 | Bold or increased intensity | |||||
4 | Underscore | |||||
5 | Blink | |||||
7 | Negative (reverse) image | |||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | scr | setDefaultRendition | Meaning | ||
1 | konsole | scr | setRendition | RE_BOLD | Meaning | |
4 | konsole | scr | setRendition | RE_UNDERLINE | Meaning | |
5 | konsole | scr | setRendition | RE_BLINK | Meaning | |
7 | konsole | scr | setRendition | RE_REVERSE | Meaning | |
10 | konsole | emu | Ignored | Meaning | ||
11 | konsole | emu | Ignored | Meaning | ||
12 | konsole | emu | Ignored | Meaning | ||
22 | konsole | scr | resetRendition | RE_BOLD | Meaning | |
24 | konsole | scr | resetRendition | RE_UNDERLINE | Meaning | |
25 | konsole | scr | resetRendition | RE_BLINK | Meaning | |
27 | konsole | scr | resetRendition | RE_REVERSE | Meaning | |
30 | konsole | scr | setForeColor | 0 | Meaning | |
31 | konsole | scr | setForeColor | 1 | Meaning | |
32 | konsole | scr | setForeColor | 2 | Meaning | |
33 | konsole | scr | setForeColor | 3 | Meaning | |
34 | konsole | scr | setForeColor | 4 | Meaning | |
35 | konsole | scr | setForeColor | 5 | Meaning | |
36 | konsole | scr | setForeColor | 6 | Meaning | |
37 | konsole | scr | setForeColor | 7 | Meaning | |
39 | konsole | scr | setForeColorToDefault | Meaning | ||
40 | konsole | scr | setBackColor | 0 | Meaning | |
41 | konsole | scr | setBackColor | 1 | Meaning | |
42 | konsole | scr | setBackColor | 2 | Meaning | |
43 | konsole | scr | setBackColor | 3 | Meaning | |
44 | konsole | scr | setBackColor | 4 | Meaning | |
45 | konsole | scr | setBackColor | 5 | Meaning | |
46 | konsole | scr | setBackColor | 6 | Meaning | |
47 | konsole | scr | setBackColor | 7 | Meaning | |
49 | konsole | scr | setBackColorToDefault | Meaning | ||
90 | konsole | scr | setForeColor | 8 | Meaning | |
91 | konsole | scr | setForeColor | 9 | Meaning | |
92 | konsole | scr | setForeColor | 10 | Meaning | |
93 | konsole | scr | setForeColor | 11 | Meaning | |
94 | konsole | scr | setForeColor | 12 | Meaning | |
95 | konsole | scr | setForeColor | 13 | Meaning | |
96 | konsole | scr | setForeColor | 14 | Meaning | |
97 | konsole | scr | setForeColor | 15 | Meaning | |
100 | konsole | scr | setBackColor | 8 | Meaning | |
101 | konsole | scr | setBackColor | 9 | Meaning | |
102 | konsole | scr | setBackColor | 10 | Meaning | |
103 | konsole | scr | setBackColor | 11 | Meaning | |
104 | konsole | scr | setBackColor | 12 | Meaning | |
105 | konsole | scr | setBackColor | 13 | Meaning | |
106 | konsole | scr | setBackColor | 14 | Meaning | |
107 | konsole | scr | setBackColor | 15 | Meaning | |
SM | Set Mode | ECMA VT100 | ||||
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. | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
4 | konsole | scr | setMode | MODE_Insert | Meaning | |
20 | konsole | emu | setMode | MODE_NewLine | LNM | |
SOH | Start Of Heading | VT100 XTERM Linux KONSOLE | ||||
0x01
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
STX | Start Of Text | VT100 XTERM Linux KONSOLE | ||||
0x02
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
SUB | Substitute | VT100 | ||||
0x1a
| ||||||
Same as CAN. | ||||||
Instruction | Scope | Operation | Args | |||
scr | ShowCharacter | 2 | ||||
SYN | Synchronous Idle | VT100 XTERM Linux KONSOLE | ||||
0x16
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
TBC | Tabulation Clear | ECMA VT100 | ||||
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. | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
0 | konsole | scr | changeTabStop | FALSE | Meaning | |
3 | konsole | scr | clearTabStops | Meaning | ||
US | Unit Separator (IS1 - Information Separator One) | VT100 XTERM Linux KONSOLE | ||||
0x1f
| ||||||
Ignored | ||||||
Instruction | Scope | Operation | Args | |||
emu | Ignored | |||||
VPA | Vertical Position Absolute | ECMA KONSOLE | ||||
ESC [ Pn d
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorY | p | ||||
VT | Vertical Tabulation | VT100 | ||||
0x0b
| ||||||
Same as LF. | ||||||
Instruction | Scope | Operation | Args | |||
emu | NewLine | |||||
VT52ANSI | VT52 ANSI Ansi Mode | VT100 XTERM VT52 KONSOLE | ||||
ESC <
| ||||||
This is an extention to the VT52 commands to embed the emulation into VT100. It allows to return back to VT100 emulation (ANSI mode). See also DECANM and SM. | ||||||
Instruction | Scope | Operation | Args | |||
emu | setMode | MODE_Ansi | ||||
VT52CUB | VT52 Cursor Back | KONSOLE | ||||
ESC D
| ||||||
See CUB. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorLeft | 1 | ||||
VT52CUD | VT52 Cursor Down | KONSOLE | ||||
ESC B
| ||||||
See CUD. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorDown | 1 | ||||
VT52CUF | VT52 Cursor Forward | KONSOLE | ||||
ESC C
| ||||||
See CUF. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorRight | 1 | ||||
VT52CUH | VT52 Cursor Home | KONSOLE | ||||
ESC H
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorYX | 1,1 | ||||
VT52CUP | VT52 Cursor Position | KONSOLE | ||||
ESC Y X;Y
| ||||||
Line and column numbers for direct cursor address are single character codes whose values are the desired number plus 37 (in Octal). Line and column numbers start at 1. | ||||||
Instruction | Scope | Operation | Args | |||
scr | setCursorYX | p-31,q-31 | ||||
VT52CUU | VT52 Cursor Up | KONSOLE | ||||
ESC A
| ||||||
See CUU. | ||||||
Instruction | Scope | Operation | Args | |||
scr | cursorUp | 1 | ||||
VT52EDL | VT52 Clear To End Of Line | KONSOLE | ||||
ESC K
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | clearToEndOfLine | |||||
VT52EDS | VT52 Clear To End Of Screen | KONSOLE | ||||
ESC J
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | clearToEndOfScreen | |||||
VT52KPAM | VT52 Enter alternate keypad mode | KONSOLE | ||||
ESC =
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
emu | setMode | MODE_AppKeyPad | ||||
VT52KPNM | VT52 Exit alternate keypad mode | KONSOLE | ||||
ESC >
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
emu | resetMode | MODE_AppKeyPad | ||||
VT52REP | VT52 Report Terminal Type | KONSOLE | ||||
ESC Z
| ||||||
Response to ESC Z is ESC / Z. | ||||||
Instruction | Scope | Operation | Args | |||
emu | reportTerminalType | |||||
VT52RI | VT52 Reverse Index | KONSOLE | ||||
ESC I
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | reverseIndex | |||||
VT52SCSF | VT52 Select special graphics character set | KONSOLE | ||||
ESC F
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | setAndUseCharset | 0,'0' | ||||
VT52SCSG | VT52 Select ASCII character set | KONSOLE | ||||
ESC G
| ||||||
FIXME. explain | ||||||
Instruction | Scope | Operation | Args | |||
scr | setAndUseCharset | 0,'B' | ||||
XTERESTORE | XTerm Private Restore Mode | XTERM KONSOLE | ||||
ESC [ ? Ps;... r
| ||||||
FIXME. explain | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
1 | konsole | emu | restoreMode | MODE_AppCuKeys | Meaning | |
6 | konsole | scr | restoreMode | MODE_Origin | Meaning | |
7 | konsole | scr | restoreMode | MODE_Wrap | Meaning | |
1000 | konsole | emu | restoreMode | MODE_Mouse1000 | Meaning | |
1001 | konsole | emu | Ignored | Meaning | ||
XTESAVE | XTerm Private Save Mode | XTERM KONSOLE | ||||
ESC [ ? Ps;... s
| ||||||
FIXME. explain | ||||||
Subcode | Emulation | Scope | Operation | Args | Meaning | |
1 | konsole | emu | saveMode | MODE_AppCuKeys | Meaning | |
6 | konsole | scr | saveMode | MODE_Origin | Meaning | |
7 | konsole | scr | saveMode | MODE_Wrap | Meaning | |
1000 | konsole | emu | saveMode | MODE_Mouse1000 | Meaning | |
1001 | konsole | emu | Ignored | Meaning |
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.
Lars Dölle, 1998