summaryrefslogtreecommitdiff
path: root/app/xterm/ctlseqs.txt
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-29 20:10:10 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-29 20:10:10 +0000
commitff44cd5185e9e878fdc64163c7e934bfc9c12d72 (patch)
treee8b93afb56a2d92e7e01861ab1d5295633353e0e /app/xterm/ctlseqs.txt
parente3dea6a3222b811e1764ca5c6c3d0ce72f18603c (diff)
Update to xterm 267. Tested by shadchin@, jasper@, ajacoutot@.
Diffstat (limited to 'app/xterm/ctlseqs.txt')
-rw-r--r--app/xterm/ctlseqs.txt1039
1 files changed, 530 insertions, 509 deletions
diff --git a/app/xterm/ctlseqs.txt b/app/xterm/ctlseqs.txt
index c1c93f331..a16fe2767 100644
--- a/app/xterm/ctlseqs.txt
+++ b/app/xterm/ctlseqs.txt
@@ -47,39 +47,39 @@ The following pairs of 7-bit and 8-bit control characters are equiva-
lent:
ESC D
- Index (IND is 0x84)
+ Index (IND is 0x84).
ESC E
- Next Line (NEL is 0x85)
+ Next Line (NEL is 0x85).
ESC H
- Tab Set (HTS is 0x88)
+ Tab Set (HTS is 0x88).
ESC M
- Reverse Index (RI is 0x8d)
+ Reverse Index (RI is 0x8d).
ESC N
- Single Shift Select of G2 Character Set (SS2 is 0x8e): affects
- next character only
+ Single Shift Select of G2 Character Set (SS2 is 0x8e). This
+ affects next character only.
ESC O
- Single Shift Select of G3 Character Set (SS3 is 0x8f): affects
- next character only
+ Single Shift Select of G3 Character Set (SS3 is 0x8f). This
+ affects next character only.
ESC P
- Device Control String (DCS is 0x90)
+ Device Control String (DCS is 0x90).
ESC V
- Start of Guarded Area (SPA is 0x96)
+ Start of Guarded Area (SPA is 0x96).
ESC W
- End of Guarded Area (EPA is 0x97)
+ End of Guarded Area (EPA is 0x97).
ESC X
- Start of String (SOS is 0x98)
+ Start of String (SOS is 0x98).
ESC Z
Return Terminal ID (DECID is 0x9a). Obsolete form of CSI c (DA).
ESC [
- Control Sequence Introducer (CSI is 0x9b)
+ Control Sequence Introducer (CSI is 0x9b).
ESC \
- String Terminator (ST is 0x9c)
+ String Terminator (ST is 0x9c).
ESC ]
- Operating System Command (OSC is 0x9d)
+ Operating System Command (OSC is 0x9d).
ESC ^
- Privacy Message (PM is 0x9e)
+ Privacy Message (PM is 0x9e).
ESC _
- Application Program Command (APC is 0x9f)
+ Application Program Command (APC is 0x9f).
These control characters are used in the vtXXX emulation.
@@ -87,7 +87,7 @@ VT100 Mode
Most of these control sequences are standard VT102 control sequences,
but there is support for later DEC VT terminals (i.e., VT220, VT320,
VT420), as well as ISO 6429 and aixterm color controls. The only VT102
-features not supported is auto-repeat, since the only way X provides for
+feature not supported is auto-repeat, since the only way X provides for
this will affect all windows. There are additional control sequences to
provide xterm-dependent functions, such as the scrollbar or window size.
Where the function is specified by DEC or ISO 6429, the code assigned to
@@ -96,70 +96,76 @@ character sets are specified by ISO 2022; see that document for a dis-
cussion of character sets.
Single-character functions
-BEL Bell (Ctrl-G)
-BS Backspace (Ctrl-H)
-CR Carriage Return (Ctrl-M)
+BEL Bell (Ctrl-G).
+BS Backspace (Ctrl-H).
+CR Carriage Return (Ctrl-M).
ENQ Return Terminal Status (Ctrl-E). Default response is an empty
string, but may be overridden by a resource answerbackString.
-FF Form Feed or New Page (NP) (Ctrl-L) same as LF
-LF Line Feed or New Line (NL) (Ctrl-J)
-SI Shift In (Ctrl-O) -> Switch to Standard Character Set: invokes
- the G0 character set (the default).
-SO Shift Out (Ctrl-N) -> Switch to Alternate Character Set:
+FF Form Feed or New Page (NP). Ctrl-L is treated the same as LF.
+LF Line Feed or New Line (NL). (LF is Ctrl-J).
+SI Shift In (Ctrl-O) -> Switch to Standard Character Set. This
+ invokes the G0 character set (the default).
+SO Shift Out (Ctrl-N) -> Switch to Alternate Character Set. This
invokes the G1 character set.
SP Space.
-TAB Horizontal Tab (HT) (Ctrl-I)
-VT Vertical Tab (Ctrl-K) same as LF
+TAB Horizontal Tab (HT) (Ctrl-I).
+VT Vertical Tab (Ctrl-K). This is treated the same as LF.
-Controls beginning with ESC (other than those where ESC is part of a
-7-bit equivalent to 8-bit C1 controls), ordered by the final charac-
-ter(s).
+Controls beginning with ESC
+This excludes controls where ESC is part of a 7-bit equivalent to 8-bit
+C1 controls, ordered by the final character(s).
ESC SP F 7-bit controls (S7C1T).
ESC SP G 8-bit controls (S8C1T).
ESC SP L Set ANSI conformance level 1 (dpANS X3.134.1).
ESC SP M Set ANSI conformance level 2 (dpANS X3.134.1).
ESC SP N Set ANSI conformance level 3 (dpANS X3.134.1).
-ESC # 3 DEC double-height line, top half (DECDHL)
-ESC # 4 DEC double-height line, bottom half (DECDHL)
-ESC # 5 DEC single-width line (DECSWL)
-ESC # 6 DEC double-width line (DECDWL)
-ESC # 8 DEC Screen Alignment Test (DECALN)
-ESC % @ Select default character set, ISO 8859-1 (ISO 2022)
-ESC % G Select UTF-8 character set (ISO 2022)
-ESC ( C Designate G0 Character Set (ISO 2022)
-ESC ) C Designate G1 Character Set (ISO 2022)
-ESC * C Designate G2 Character Set (ISO 2022)
-ESC + C Designate G3 Character Set (ISO 2022)
- Final character C for designating 94-character sets (0 , A
- and B apply to VT100 and up, the remainder to VT220 and up):
- C = 0 -> DEC Special Character and Line Drawing Set
- C = A -> United Kingdom (UK)
- C = B -> United States (USASCII)
- C = 4 -> Dutch
- C = C or 5 -> Finnish
- C = R -> French
- C = Q -> French Canadian
- C = K -> German
- C = Y -> Italian
- C = E or 6 -> Norwegian/Danish
- C = Z -> Spanish
- C = H or 7 -> Swedish
- C = = -> Swiss
-ESC - C Designate G1 Character Set (VT300)
-ESC . C Designate G2 Character Set (VT300)
-ESC / C Designate G3 Character Set (VT300)
+ESC # 3 DEC double-height line, top half (DECDHL).
+ESC # 4 DEC double-height line, bottom half (DECDHL).
+ESC # 5 DEC single-width line (DECSWL).
+ESC # 6 DEC double-width line (DECDWL).
+ESC # 8 DEC Screen Alignment Test (DECALN).
+ESC % @ Select default character set. That is ISO 8859-1 (ISO 2022).
+ESC % G Select UTF-8 character set (ISO 2022).
+ESC ( C Designate G0 Character Set (ISO 2022, VT100).
+ Final character C for designating 94-character sets. In this
+ list, 0 , A and B apply to VT100 and up, the remainder to
+ VT220 and up:
+ C = 0 -> DEC Special Character and Line Drawing Set.
+ C = A -> United Kingdom (UK).
+ C = B -> United States (USASCII).
+ C = 4 -> Dutch.
+ C = C or 5 -> Finnish.
+ C = R -> French.
+ C = Q -> French Canadian.
+ C = K -> German.
+ C = Y -> Italian.
+ C = E or 6 -> Norwegian/Danish.
+ C = Z -> Spanish.
+ C = H or 7 -> Swedish.
+ C = = -> Swiss.
+ESC ) C Designate G1 Character Set (ISO 2022, VT100).
+ The same character sets apply as for ESC ( C.
+ESC * C Designate G2 Character Set (ISO 2022, VT220).
+ The same character sets apply as for ESC ( C.
+ESC + C Designate G3 Character Set (ISO 2022, VT220).
+ The same character sets apply as for ESC ( C.
+ESC - C Designate G1 Character Set (VT300).
+ The same character sets apply as for ESC ( C.
+ESC . C Designate G2 Character Set (VT300).
+ The same character sets apply as for ESC ( C.
+ESC / C Designate G3 Character Set (VT300).
These work for 96-character sets only.
- C = A -> ISO Latin-1 Supplemental
-ESC 7 Save Cursor (DECSC)
-ESC 8 Restore Cursor (DECRC)
-ESC = Application Keypad (DECPAM)
-ESC > Normal Keypad (DECPNM)
-ESC F Cursor to lower left corner of screen (if enabled by the
- hpLowerleftBugCompat resource).
-ESC c Full Reset (RIS)
+ C = A -> ISO Latin-1 Supplemental.
+ESC 7 Save Cursor (DECSC).
+ESC 8 Restore Cursor (DECRC).
+ESC = Application Keypad (DECPAM).
+ESC > Normal Keypad (DECPNM).
+ESC F Cursor to lower left corner of screen. This is enabled by the
+ hpLowerleftBugCompat resource.
+ESC c Full Reset (RIS).
ESC l Memory Lock (per HP terminals). Locks memory above the cur-
sor.
-ESC m Memory Unlock (per HP terminals)
+ESC m Memory Unlock (per HP terminals).
ESC n Invoke the G2 Character Set as GL (LS2).
ESC o Invoke the G3 Character Set as GL (LS3).
ESC | Invoke the G3 Character Set as GR (LS3R).
@@ -167,18 +173,18 @@ ESC } Invoke the G2 Character Set as GR (LS2R).
ESC ~ Invoke the G1 Character Set as GR (LS1R).
Application Program-Control functions
-APC Pt ST xterm implements no APC functions; Pt is ignored. Pt need
- not be printable characters.
+APC Pt ST None. xterm implements no APC functions; Pt is ignored. Pt
+ need not be printable characters.
Device-Control functions
DCS Ps; Ps| Pt ST
User-Defined Keys (DECUDK). The first parameter:
Ps = 0 -> Clear all UDK definitions before starting
- (default)
- Ps = 1 -> Erase Below (default)
+ (default).
+ Ps = 1 -> Erase Below (default).
The second parameter:
- Ps = 0 -> Lock the keys (default)
- Ps = 1 -> Do not lock.
+ Ps = 0 <- Lock the keys (default).
+ Ps = 1 <- Do not lock.
The third parameter is a ';'-separated list of strings denot-
ing the key-code separated by a '/' from the hex-encoded key
value. The key codes correspond to the DEC function-key codes
@@ -214,41 +220,41 @@ DCS + q Pt ST
ter).
Functions using CSI , ordered by the final character(s)
-CSI Ps @ Insert Ps (Blank) Character(s) (default = 1) (ICH)
-CSI Ps A Cursor Up Ps Times (default = 1) (CUU)
-CSI Ps B Cursor Down Ps Times (default = 1) (CUD)
-CSI Ps C Cursor Forward Ps Times (default = 1) (CUF)
-CSI Ps D Cursor Backward Ps Times (default = 1) (CUB)
-CSI Ps E Cursor Next Line Ps Times (default = 1) (CNL)
-CSI Ps F Cursor Preceding Line Ps Times (default = 1) (CPL)
-CSI Ps G Cursor Character Absolute [column] (default = [row,1]) (CHA)
+CSI Ps @ Insert Ps (Blank) Character(s) (default = 1) (ICH).
+CSI Ps A Cursor Up Ps Times (default = 1) (CUU).
+CSI Ps B Cursor Down Ps Times (default = 1) (CUD).
+CSI Ps C Cursor Forward Ps Times (default = 1) (CUF).
+CSI Ps D Cursor Backward Ps Times (default = 1) (CUB).
+CSI Ps E Cursor Next Line Ps Times (default = 1) (CNL).
+CSI Ps F Cursor Preceding Line Ps Times (default = 1) (CPL).
+CSI Ps G Cursor Character Absolute [column] (default = [row,1]) (CHA).
CSI Ps ; Ps H
- Cursor Position [row;column] (default = [1,1]) (CUP)
-CSI Ps I Cursor Forward Tabulation Ps tab stops (default = 1) (CHT)
-CSI Ps J Erase in Display (ED)
- Ps = 0 -> Erase Below (default)
- Ps = 1 -> Erase Above
- Ps = 2 -> Erase All
- Ps = 3 -> Erase Saved Lines (xterm)
+ Cursor Position [row;column] (default = [1,1]) (CUP).
+CSI Ps I Cursor Forward Tabulation Ps tab stops (default = 1) (CHT).
+CSI Ps J Erase in Display (ED).
+ Ps = 0 -> Erase Below (default).
+ Ps = 1 -> Erase Above.
+ Ps = 2 -> Erase All.
+ Ps = 3 -> Erase Saved Lines (xterm).
CSI ? Ps J
- Erase in Display (DECSED)
- Ps = 0 -> Selective Erase Below (default)
- Ps = 1 -> Selective Erase Above
- Ps = 2 -> Selective Erase All
-CSI Ps K Erase in Line (EL)
- Ps = 0 -> Erase to Right (default)
- Ps = 1 -> Erase to Left
- Ps = 2 -> Erase All
+ Erase in Display (DECSED).
+ Ps = 0 -> Selective Erase Below (default).
+ Ps = 1 -> Selective Erase Above.
+ Ps = 2 -> Selective Erase All.
+CSI Ps K Erase in Line (EL).
+ Ps = 0 -> Erase to Right (default).
+ Ps = 1 -> Erase to Left.
+ Ps = 2 -> Erase All.
CSI ? Ps K
- Erase in Line (DECSEL)
- Ps = 0 -> Selective Erase to Right (default)
- Ps = 1 -> Selective Erase to Left
- Ps = 2 -> Selective Erase All
-CSI Ps L Insert Ps Line(s) (default = 1) (IL)
-CSI Ps M Delete Ps Line(s) (default = 1) (DL)
-CSI Ps P Delete Ps Character(s) (default = 1) (DCH)
-CSI Ps S Scroll up Ps lines (default = 1) (SU)
-CSI Ps T Scroll down Ps lines (default = 1) (SD)
+ Erase in Line (DECSEL).
+ Ps = 0 -> Selective Erase to Right (default).
+ Ps = 1 -> Selective Erase to Left.
+ Ps = 2 -> Selective Erase All.
+CSI Ps L Insert Ps Line(s) (default = 1) (IL).
+CSI Ps M Delete Ps Line(s) (default = 1) (DL).
+CSI Ps P Delete Ps Character(s) (default = 1) (DCH).
+CSI Ps S Scroll up Ps lines (default = 1) (SU).
+CSI Ps T Scroll down Ps lines (default = 1) (SD).
CSI Ps ; Ps ; Ps ; Ps ; Ps T
Initiate highlight mouse tracking. Parameters are
[func;startx;starty;firstrow;lastrow]. See the section Mouse
@@ -258,17 +264,18 @@ CSI > Ps; Ps T
value. Normally, "reset" disables the feature. It is possi-
ble to disable the ability to reset features by compiling a
different default for the title modes into xterm.
- Ps = 0 -> Do not set window/icon labels using hexadecimal
- Ps = 1 -> Do not query window/icon labels using hexadecimal
- Ps = 2 -> Do not set window/icon labels using UTF-8
- Ps = 3 -> Do not query window/icon labels using UTF-8 (See
- discussion of "Title Modes")
-CSI Ps X Erase Ps Character(s) (default = 1) (ECH)
-CSI Ps Z Cursor Backward Tabulation Ps tab stops (default = 1) (CBT)
+ Ps = 0 -> Do not set window/icon labels using hexadecimal.
+ Ps = 1 -> Do not query window/icon labels using hexadeci-
+ mal.
+ Ps = 2 -> Do not set window/icon labels using UTF-8.
+ Ps = 3 -> Do not query window/icon labels using UTF-8.
+ (See discussion of "Title Modes").
+CSI Ps X Erase Ps Character(s) (default = 1) (ECH).
+CSI Ps Z Cursor Backward Tabulation Ps tab stops (default = 1) (CBT).
CSI Pm ` Character Position Absolute [column] (default = [row,1])
- (HPA)
-CSI Ps b Repeat the preceding graphic character Ps times (REP)
-CSI Ps c Send Device Attributes (Primary DA)
+ (HPA).
+CSI Ps b Repeat the preceding graphic character Ps times (REP).
+CSI Ps c Send Device Attributes (Primary DA).
Ps = 0 or omitted -> request attributes from terminal. The
response depends on the decTerminalID resource setting.
-> CSI ? 1 ; 2 c (``VT100 with Advanced Video Option'')
@@ -278,73 +285,73 @@ CSI Ps c Send Device Attributes (Primary DA)
The VT100-style response parameters do not mean anything by
themselves. VT220 parameters do, telling the host what fea-
tures the terminal supports:
- -> 1 132-columns
- -> 2 Printer
- -> 6 Selective erase
- -> 8 User-defined keys
- -> 9 National replacement character sets
- -> 1 5 Technical characters
- -> 2 2 ANSI color, e.g., VT525
- -> 2 9 ANSI text locator (i.e., DEC Locator mode)
+ Ps = 1 -> 132-columns.
+ Ps = 2 -> Printer.
+ Ps = 6 -> Selective erase.
+ Ps = 8 -> User-defined keys.
+ Ps = 9 -> National replacement character sets.
+ Ps = 1 5 -> Technical characters.
+ Ps = 2 2 -> ANSI color, e.g., VT525.
+ Ps = 2 9 -> ANSI text locator (i.e., DEC Locator mode).
CSI > Ps c
- Send Device Attributes (Secondary DA)
+ Send Device Attributes (Secondary DA).
Ps = 0 or omitted -> request the terminal's identification
code. The response depends on the decTerminalID resource set-
ting. It should apply only to VT220 and up, but xterm extends
this to VT100.
-> CSI > Pp ; Pv ; Pc c
where Pp denotes the terminal type
- -> 0 (``VT100'')
- -> 1 (``VT220'')
+ Pp = 0 -> ``VT100''.
+ Pp = 1 -> ``VT220''.
and Pv is the firmware version (for xterm, this was originally
the XFree86 patch number, starting with 95). In a DEC termi-
nal, Pc indicates the ROM cartridge registration number and is
always zero.
-CSI Pm d Line Position Absolute [row] (default = [1,column]) (VPA)
+CSI Pm d Line Position Absolute [row] (default = [1,column]) (VPA).
CSI Ps ; Ps f
Horizontal and Vertical Position [row;column] (default =
- [1,1]) (HVP)
-CSI Ps g Tab Clear (TBC)
- Ps = 0 -> Clear Current Column (default)
- Ps = 3 -> Clear All
-CSI Pm h Set Mode (SM)
- Ps = 2 -> Keyboard Action Mode (AM)
- Ps = 4 -> Insert Mode (IRM)
- Ps = 1 2 -> Send/receive (SRM)
- Ps = 2 0 -> Automatic Newline (LNM)
+ [1,1]) (HVP).
+CSI Ps g Tab Clear (TBC).
+ Ps = 0 -> Clear Current Column (default).
+ Ps = 3 -> Clear All.
+CSI Pm h Set Mode (SM).
+ Ps = 2 -> Keyboard Action Mode (AM).
+ Ps = 4 -> Insert Mode (IRM).
+ Ps = 1 2 -> Send/receive (SRM).
+ Ps = 2 0 -> Automatic Newline (LNM).
CSI ? Pm h
- DEC Private Mode Set (DECSET)
- Ps = 1 -> Application Cursor Keys (DECCKM)
+ DEC Private Mode Set (DECSET).
+ Ps = 1 -> Application Cursor Keys (DECCKM).
Ps = 2 -> Designate USASCII for character sets G0-G3
(DECANM), and set VT100 mode.
- Ps = 3 -> 132 Column Mode (DECCOLM)
- Ps = 4 -> Smooth (Slow) Scroll (DECSCLM)
- Ps = 5 -> Reverse Video (DECSCNM)
- Ps = 6 -> Origin Mode (DECOM)
- Ps = 7 -> Wraparound Mode (DECAWM)
- Ps = 8 -> Auto-repeat Keys (DECARM)
+ Ps = 3 -> 132 Column Mode (DECCOLM).
+ Ps = 4 -> Smooth (Slow) Scroll (DECSCLM).
+ Ps = 5 -> Reverse Video (DECSCNM).
+ Ps = 6 -> Origin Mode (DECOM).
+ Ps = 7 -> Wraparound Mode (DECAWM).
+ Ps = 8 -> Auto-repeat Keys (DECARM).
Ps = 9 -> Send Mouse X & Y on button press. See the sec-
tion Mouse Tracking.
- Ps = 1 0 -> Show toolbar (rxvt)
- Ps = 1 2 -> Start Blinking Cursor (att610)
- Ps = 1 8 -> Print form feed (DECPFF)
- Ps = 1 9 -> Set print extent to full screen (DECPEX)
- Ps = 2 5 -> Show Cursor (DECTCEM)
+ Ps = 1 0 -> Show toolbar (rxvt).
+ Ps = 1 2 -> Start Blinking Cursor (att610).
+ Ps = 1 8 -> Print form feed (DECPFF).
+ Ps = 1 9 -> Set print extent to full screen (DECPEX).
+ Ps = 2 5 -> Show Cursor (DECTCEM).
Ps = 3 0 -> Show scrollbar (rxvt).
Ps = 3 5 -> Enable font-shifting functions (rxvt).
- Ps = 3 8 -> Enter Tektronix Mode (DECTEK)
- Ps = 4 0 -> Allow 80 -> 132 Mode
- Ps = 4 1 -> more(1) fix (see curses resource)
+ Ps = 3 8 -> Enter Tektronix Mode (DECTEK).
+ Ps = 4 0 -> Allow 80 -> 132 Mode.
+ Ps = 4 1 -> more(1) fix (see curses resource).
Ps = 4 2 -> Enable Nation Replacement Character sets (DECN-
- RCM)
- Ps = 4 4 -> Turn On Margin Bell
- Ps = 4 5 -> Reverse-wraparound Mode
- Ps = 4 6 -> Start Logging (normally disabled by a compile-
- time option)
- Ps = 4 7 -> Use Alternate Screen Buffer (unless disabled by
- the titeInhibit resource)
- Ps = 6 6 -> Application keypad (DECNKM)
- Ps = 6 7 -> Backarrow key sends backspace (DECBKM)
+ RCM).
+ Ps = 4 4 -> Turn On Margin Bell.
+ Ps = 4 5 -> Reverse-wraparound Mode.
+ Ps = 4 6 -> Start Logging. This is normally disabled by a
+ compile-time option.
+ Ps = 4 7 -> Use Alternate Screen Buffer. (This may be dis-
+ abled by the titeInhibit resource).
+ Ps = 6 6 -> Application keypad (DECNKM).
+ Ps = 6 7 -> Backarrow key sends backspace (DECBKM).
Ps = 1 0 0 0 -> Send Mouse X & Y on button press and
release. See the section Mouse Tracking.
Ps = 1 0 0 1 -> Use Hilite Mouse Tracking.
@@ -357,29 +364,31 @@ CSI ? Pm h
Ps = 1 0 3 4 -> Interpret "meta" key, sets eighth bit.
(enables the eightBitInput resource).
Ps = 1 0 3 5 -> Enable special modifiers for Alt and Num-
- Lock keys (enables the numLock resource).
- Ps = 1 0 3 6 -> Send ESC when Meta modifies a key (enables
- the metaSendsEscape resource).
- Ps = 1 0 3 7 -> Send DEL from the editing-keypad Delete key
- Ps = 1 0 3 9 -> Send ESC when Alt modifies a key (enables
- the altSendsEscape resource).
- Ps = 1 0 4 0 -> Keep selection even if not highlighted
- (enables the keepSelection resource).
- Ps = 1 0 4 1 -> Use the CLIPBOARD selection (enables the
- selectToClipboard resource).
+ Lock keys. (This enables the numLock resource).
+ Ps = 1 0 3 6 -> Send ESC when Meta modifies a key. (This
+ enables the metaSendsEscape resource).
+ Ps = 1 0 3 7 -> Send DEL from the editing-keypad Delete
+ key.
+ Ps = 1 0 3 9 -> Send ESC when Alt modifies a key. (This
+ enables the altSendsEscape resource).
+ Ps = 1 0 4 0 -> Keep selection even if not highlighted.
+ (This enables the keepSelection resource).
+ Ps = 1 0 4 1 -> Use the CLIPBOARD selection. (This enables
+ the selectToClipboard resource).
Ps = 1 0 4 2 -> Enable Urgency window manager hint when
- Control-G is received (enables the bellIsUrgent resource).
+ Control-G is received. (This enables the bellIsUrgent
+ resource).
Ps = 1 0 4 3 -> Enable raising of the window when Control-G
- is received (enables the popOnBell resource).
- Ps = 1 0 4 7 -> Use Alternate Screen Buffer (unless dis-
- abled by the titeInhibit resource)
- Ps = 1 0 4 8 -> Save cursor as in DECSC (unless disabled by
- the titeInhibit resource)
+ is received. (enables the popOnBell resource).
+ Ps = 1 0 4 7 -> Use Alternate Screen Buffer. (This may be
+ disabled by the titeInhibit resource).
+ Ps = 1 0 4 8 -> Save cursor as in DECSC. (This may be dis-
+ abled by the titeInhibit resource).
Ps = 1 0 4 9 -> Save cursor as in DECSC and use Alternate
- Screen Buffer, clearing it first (unless disabled by the
- titeInhibit resource). This combines the effects of the 1 0 4
- 7 and 1 0 4 8 modes. Use this with terminfo-based applica-
- tions rather than the 4 7 mode.
+ Screen Buffer, clearing it first. (This may be disabled by
+ the titeInhibit resource). This combines the effects of the 1
+ 0 4 7 and 1 0 4 8 modes. Use this with terminfo-based
+ applications rather than the 4 7 mode.
Ps = 1 0 5 0 -> Set terminfo/termcap function-key mode.
Ps = 1 0 5 1 -> Set Sun function-key mode.
Ps = 1 0 5 2 -> Set HP function-key mode.
@@ -387,51 +396,51 @@ CSI ? Pm h
Ps = 1 0 6 0 -> Set legacy keyboard emulation (X11R6).
Ps = 1 0 6 1 -> Set VT220 keyboard emulation.
Ps = 2 0 0 4 -> Set bracketed paste mode.
-CSI Pm i Media Copy (MC)
- Ps = 0 -> Print screen (default)
- Ps = 4 -> Turn off printer controller mode
- Ps = 5 -> Turn on printer controller mode
+CSI Pm i Media Copy (MC).
+ Ps = 0 -> Print screen (default).
+ Ps = 4 -> Turn off printer controller mode.
+ Ps = 5 -> Turn on printer controller mode.
CSI ? Pm i
- Media Copy (MC, DEC-specific)
- Ps = 1 -> Print line containing cursor
- Ps = 4 -> Turn off autoprint mode
- Ps = 5 -> Turn on autoprint mode
- Ps = 1 0 -> Print composed display, ignores DECPEX
- Ps = 1 1 -> Print all pages
-CSI Pm l Reset Mode (RM)
- Ps = 2 -> Keyboard Action Mode (AM)
- Ps = 4 -> Replace Mode (IRM)
- Ps = 1 2 -> Send/receive (SRM)
- Ps = 2 0 -> Normal Linefeed (LNM)
+ Media Copy (MC, DEC-specific).
+ Ps = 1 -> Print line containing cursor.
+ Ps = 4 -> Turn off autoprint mode.
+ Ps = 5 -> Turn on autoprint mode.
+ Ps = 1 0 -> Print composed display, ignores DECPEX.
+ Ps = 1 1 -> Print all pages.
+CSI Pm l Reset Mode (RM).
+ Ps = 2 -> Keyboard Action Mode (AM).
+ Ps = 4 -> Replace Mode (IRM).
+ Ps = 1 2 -> Send/receive (SRM).
+ Ps = 2 0 -> Normal Linefeed (LNM).
CSI ? Pm l
- DEC Private Mode Reset (DECRST)
- Ps = 1 -> Normal Cursor Keys (DECCKM)
+ DEC Private Mode Reset (DECRST).
+ Ps = 1 -> Normal Cursor Keys (DECCKM).
Ps = 2 -> Designate VT52 mode (DECANM).
- Ps = 3 -> 80 Column Mode (DECCOLM)
- Ps = 4 -> Jump (Fast) Scroll (DECSCLM)
- Ps = 5 -> Normal Video (DECSCNM)
- Ps = 6 -> Normal Cursor Mode (DECOM)
- Ps = 7 -> No Wraparound Mode (DECAWM)
- Ps = 8 -> No Auto-repeat Keys (DECARM)
- Ps = 9 -> Don't send Mouse X & Y on button press
- Ps = 1 0 -> Hide toolbar (rxvt)
- Ps = 1 2 -> Stop Blinking Cursor (att610)
- Ps = 1 8 -> Don't print form feed (DECPFF)
- Ps = 1 9 -> Limit print to scrolling region (DECPEX)
- Ps = 2 5 -> Hide Cursor (DECTCEM)
+ Ps = 3 -> 80 Column Mode (DECCOLM).
+ Ps = 4 -> Jump (Fast) Scroll (DECSCLM).
+ Ps = 5 -> Normal Video (DECSCNM).
+ Ps = 6 -> Normal Cursor Mode (DECOM).
+ Ps = 7 -> No Wraparound Mode (DECAWM).
+ Ps = 8 -> No Auto-repeat Keys (DECARM).
+ Ps = 9 -> Don't send Mouse X & Y on button press.
+ Ps = 1 0 -> Hide toolbar (rxvt).
+ Ps = 1 2 -> Stop Blinking Cursor (att610).
+ Ps = 1 8 -> Don't print form feed (DECPFF).
+ Ps = 1 9 -> Limit print to scrolling region (DECPEX).
+ Ps = 2 5 -> Hide Cursor (DECTCEM).
Ps = 3 0 -> Don't show scrollbar (rxvt).
Ps = 3 5 -> Disable font-shifting functions (rxvt).
- Ps = 4 0 -> Disallow 80 -> 132 Mode
- Ps = 4 1 -> No more(1) fix (see curses resource)
+ Ps = 4 0 -> Disallow 80 -> 132 Mode.
+ Ps = 4 1 -> No more(1) fix (see curses resource).
Ps = 4 2 -> Disable Nation Replacement Character sets (DEC-
- NRCM)
- Ps = 4 4 -> Turn Off Margin Bell
- Ps = 4 5 -> No Reverse-wraparound Mode
- Ps = 4 6 -> Stop Logging (normally disabled by a compile-
- time option)
- Ps = 4 7 -> Use Normal Screen Buffer
- Ps = 6 6 -> Numeric keypad (DECNKM)
- Ps = 6 7 -> Backarrow key sends delete (DECBKM)
+ NRCM).
+ Ps = 4 4 -> Turn Off Margin Bell.
+ Ps = 4 5 -> No Reverse-wraparound Mode.
+ Ps = 4 6 -> Stop Logging. (This is normally disabled by a
+ compile-time option).
+ Ps = 4 7 -> Use Normal Screen Buffer.
+ Ps = 6 6 -> Numeric keypad (DECNKM).
+ Ps = 6 7 -> Backarrow key sends delete (DECBKM).
Ps = 1 0 0 0 -> Don't send Mouse X & Y on button press and
release. See the section Mouse Tracking.
Ps = 1 0 0 1 -> Don't use Hilite Mouse Tracking.
@@ -442,34 +451,35 @@ CSI ? Pm l
Ps = 1 0 1 0 -> Don't scroll to bottom on tty output
(rxvt).
Ps = 1 0 1 1 -> Don't scroll to bottom on key press (rxvt).
- Ps = 1 0 3 4 -> Don't interpret "meta" key (disables the
- eightBitInput resource).
+ Ps = 1 0 3 4 -> Don't interpret "meta" key. (This disables
+ the eightBitInput resource).
Ps = 1 0 3 5 -> Disable special modifiers for Alt and Num-
- Lock keys (disables the numLock resource).
- Ps = 1 0 3 6 -> Don't send ESC when Meta modifies a key
- (disables the metaSendsEscape resource).
+ Lock keys. (This disables the numLock resource).
+ Ps = 1 0 3 6 -> Don't send ESC when Meta modifies a key.
+ (This disables the metaSendsEscape resource).
Ps = 1 0 3 7 -> Send VT220 Remove from the editing-keypad
- Delete key
- Ps = 1 0 3 9 -> Don't send ESC when Alt modifies a key
- (disables the altSendsEscape resource).
- Ps = 1 0 4 0 -> Do not keep selection when not highlighted
- (disables the keepSelection resource).
- Ps = 1 0 4 1 -> Use the PRIMARY selection. (disables the
- selectToClipboard resource).
+ Delete key.
+ Ps = 1 0 3 9 -> Don't send ESC when Alt modifies a key.
+ (This disables the altSendsEscape resource).
+ Ps = 1 0 4 0 -> Do not keep selection when not highlighted.
+ (This disables the keepSelection resource).
+ Ps = 1 0 4 1 -> Use the PRIMARY selection. (This disables
+ the selectToClipboard resource).
Ps = 1 0 4 2 -> Disable Urgency window manager hint when
- Control-G is received (disables the bellIsUrgent resource).
+ Control-G is received. (This disables the bellIsUrgent
+ resource).
Ps = 1 0 4 3 -> Disable raising of the window when Control-
- G is received (disables the popOnBell resource).
+ G is received. (This disables the popOnBell resource).
Ps = 1 0 4 7 -> Use Normal Screen Buffer, clearing screen
- first if in the Alternate Screen (unless disabled by the
- titeInhibit resource)
- Ps = 1 0 4 8 -> Restore cursor as in DECRC (unless disabled
- by the titeInhibit resource)
+ first if in the Alternate Screen. (This may be disabled by
+ the titeInhibit resource).
+ Ps = 1 0 4 8 -> Restore cursor as in DECRC. (This may be
+ disabled by the titeInhibit resource).
Ps = 1 0 4 9 -> Use Normal Screen Buffer and restore cursor
- as in DECRC (unless disabled by the titeInhibit resource).
- This combines the effects of the 1 0 4 7 and 1 0 4 8 modes.
- Use this with terminfo-based applications rather than the 4 7
- mode.
+ as in DECRC. (This may be disabled by the titeInhibit
+ resource). This combines the effects of the 1 0 4 7 and 1 0
+ 4 8 modes. Use this with terminfo-based applications rather
+ than the 4 7 mode.
Ps = 1 0 5 0 -> Reset terminfo/termcap function-key mode.
Ps = 1 0 5 1 -> Reset Sun function-key mode.
Ps = 1 0 5 2 -> Reset HP function-key mode.
@@ -477,66 +487,68 @@ CSI ? Pm l
Ps = 1 0 6 0 -> Reset legacy keyboard emulation (X11R6).
Ps = 1 0 6 1 -> Reset keyboard emulation to Sun/PC style.
Ps = 2 0 0 4 -> Reset bracketed paste mode.
-CSI Pm m Character Attributes (SGR)
- Ps = 0 -> Normal (default)
- Ps = 1 -> Bold
- Ps = 4 -> Underlined
- Ps = 5 -> Blink (appears as Bold)
- Ps = 7 -> Inverse
- Ps = 8 -> Invisible, i.e., hidden (VT300)
- Ps = 2 2 -> Normal (neither bold nor faint)
- Ps = 2 4 -> Not underlined
- Ps = 2 5 -> Steady (not blinking)
- Ps = 2 7 -> Positive (not inverse)
- Ps = 2 8 -> Visible, i.e., not hidden (VT300)
- Ps = 3 0 -> Set foreground color to Black
- Ps = 3 1 -> Set foreground color to Red
- Ps = 3 2 -> Set foreground color to Green
- Ps = 3 3 -> Set foreground color to Yellow
- Ps = 3 4 -> Set foreground color to Blue
- Ps = 3 5 -> Set foreground color to Magenta
- Ps = 3 6 -> Set foreground color to Cyan
- Ps = 3 7 -> Set foreground color to White
- Ps = 3 9 -> Set foreground color to default (original)
- Ps = 4 0 -> Set background color to Black
- Ps = 4 1 -> Set background color to Red
- Ps = 4 2 -> Set background color to Green
- Ps = 4 3 -> Set background color to Yellow
- Ps = 4 4 -> Set background color to Blue
- Ps = 4 5 -> Set background color to Magenta
- Ps = 4 6 -> Set background color to Cyan
- Ps = 4 7 -> Set background color to White
+CSI Pm m Character Attributes (SGR).
+ Ps = 0 -> Normal (default).
+ Ps = 1 -> Bold.
+ Ps = 4 -> Underlined.
+ Ps = 5 -> Blink (appears as Bold).
+ Ps = 7 -> Inverse.
+ Ps = 8 -> Invisible, i.e., hidden (VT300).
+ Ps = 2 2 -> Normal (neither bold nor faint).
+ Ps = 2 4 -> Not underlined.
+ Ps = 2 5 -> Steady (not blinking).
+ Ps = 2 7 -> Positive (not inverse).
+ Ps = 2 8 -> Visible, i.e., not hidden (VT300).
+ Ps = 3 0 -> Set foreground color to Black.
+ Ps = 3 1 -> Set foreground color to Red.
+ Ps = 3 2 -> Set foreground color to Green.
+ Ps = 3 3 -> Set foreground color to Yellow.
+ Ps = 3 4 -> Set foreground color to Blue.
+ Ps = 3 5 -> Set foreground color to Magenta.
+ Ps = 3 6 -> Set foreground color to Cyan.
+ Ps = 3 7 -> Set foreground color to White.
+ Ps = 3 9 -> Set foreground color to default (original).
+ Ps = 4 0 -> Set background color to Black.
+ Ps = 4 1 -> Set background color to Red.
+ Ps = 4 2 -> Set background color to Green.
+ Ps = 4 3 -> Set background color to Yellow.
+ Ps = 4 4 -> Set background color to Blue.
+ Ps = 4 5 -> Set background color to Magenta.
+ Ps = 4 6 -> Set background color to Cyan.
+ Ps = 4 7 -> Set background color to White.
Ps = 4 9 -> Set background color to default (original).
If 16-color support is compiled, the following apply. Assume
that xterm's resources are set so that the ISO color codes are
the first 8 of a set of 16. Then the aixterm colors are the
bright versions of the ISO colors:
- Ps = 9 0 -> Set foreground color to Black
- Ps = 9 1 -> Set foreground color to Red
- Ps = 9 2 -> Set foreground color to Green
- Ps = 9 3 -> Set foreground color to Yellow
- Ps = 9 4 -> Set foreground color to Blue
- Ps = 9 5 -> Set foreground color to Magenta
- Ps = 9 6 -> Set foreground color to Cyan
- Ps = 9 7 -> Set foreground color to White
- Ps = 1 0 0 -> Set background color to Black
- Ps = 1 0 1 -> Set background color to Red
- Ps = 1 0 2 -> Set background color to Green
- Ps = 1 0 3 -> Set background color to Yellow
- Ps = 1 0 4 -> Set background color to Blue
- Ps = 1 0 5 -> Set background color to Magenta
- Ps = 1 0 6 -> Set background color to Cyan
- Ps = 1 0 7 -> Set background color to White
+ Ps = 9 0 -> Set foreground color to Black.
+ Ps = 9 1 -> Set foreground color to Red.
+ Ps = 9 2 -> Set foreground color to Green.
+ Ps = 9 3 -> Set foreground color to Yellow.
+ Ps = 9 4 -> Set foreground color to Blue.
+ Ps = 9 5 -> Set foreground color to Magenta.
+ Ps = 9 6 -> Set foreground color to Cyan.
+ Ps = 9 7 -> Set foreground color to White.
+ Ps = 1 0 0 -> Set background color to Black.
+ Ps = 1 0 1 -> Set background color to Red.
+ Ps = 1 0 2 -> Set background color to Green.
+ Ps = 1 0 3 -> Set background color to Yellow.
+ Ps = 1 0 4 -> Set background color to Blue.
+ Ps = 1 0 5 -> Set background color to Magenta.
+ Ps = 1 0 6 -> Set background color to Cyan.
+ Ps = 1 0 7 -> Set background color to White.
If xterm is compiled with the 16-color support disabled, it
supports the following, from rxvt:
Ps = 1 0 0 -> Set foreground and background color to
- default
+ default.
If 88- or 256-color support is compiled, the following apply.
- Ps = 3 8 ; 5 ; Ps -> Set foreground color to the second Ps
- Ps = 4 8 ; 5 ; Ps -> Set background color to the second Ps
+ Ps = 3 8 ; 5 ; Ps -> Set foreground color to the second
+ Ps.
+ Ps = 4 8 ; 5 ; Ps -> Set background color to the second
+ Ps.
CSI > Ps; Ps m
Set or reset resource-values used by xterm to decide whether
@@ -545,52 +557,56 @@ CSI > Ps; Ps m
tifies the resource to set/reset. The second parameter is the
value to assign to the resource. If the second parameter is
omitted, the resource is reset to its initial value.
- -> 1 modifyCursorKeys
- -> 2 modifyFunctionKeys
- -> 4 modifyOtherKeys
+ Ps = 1 -> modifyCursorKeys.
+ Ps = 2 -> modifyFunctionKeys.
+ Ps = 4 -> modifyOtherKeys.
If no parameters are given, all resources are reset to their
initial values.
-CSI Ps n Device Status Report (DSR)
- Ps = 5 -> Status Report CSI 0 n (``OK'')
- Ps = 6 -> Report Cursor Position (CPR) [row;column] as
+CSI Ps n Device Status Report (DSR).
+ Ps = 5 -> Status Report. Result (``OK'') is
+ CSI 0 n
+ Ps = 6 -> Report Cursor Position (CPR) [row;column].
+ Result is
CSI r ; c R
CSI > Ps n
Disable modifiers which may be enabled via the CSI > Ps; Ps m
sequence. This corresponds to a resource value of "-1", which
cannot be set with the other sequence. The parameter identi-
fies the resource to be disabled:
- -> 1 modifyCursorKeys
- -> 2 modifyFunctionKeys
- -> 4 modifyOtherKeys If the parameter is omitted, modify-
- FunctionKeys is disabled. When modifyFunctionKeys is dis-
- abled, xterm uses the modifier keys to make an extended
- sequence of functions rather than adding a parameter to each
- function key to denote the modifiers.
+ Ps = 1 -> modifyCursorKeys.
+ Ps = 2 -> modifyFunctionKeys.
+ Ps = 4 -> modifyOtherKeys.
+ If the parameter is omitted, modifyFunctionKeys is disabled.
+ When modifyFunctionKeys is disabled, xterm uses the modifier
+ keys to make an extended sequence of functions rather than
+ adding a parameter to each function key to denote the modi-
+ fiers.
CSI ? Ps n
- Device Status Report (DSR, DEC-specific)
+ Device Status Report (DSR, DEC-specific).
Ps = 6 -> Report Cursor Position (CPR) [row;column] as CSI
? r ; c R (assumes page is zero).
- Ps = 1 5 -> Report Printer status as CSI ? 1 0 n (ready)
- or CSI ? 1 1 n (not ready)
+ Ps = 1 5 -> Report Printer status as CSI ? 1 0 n (ready).
+ or CSI ? 1 1 n (not ready).
Ps = 2 5 -> Report UDK status as CSI ? 2 0 n (unlocked)
- or CSI ? 2 1 n (locked)
+ or CSI ? 2 1 n (locked).
Ps = 2 6 -> Report Keyboard status as
- CSI ? 2 7 ; 1 ; 0 ; 0 n (North American)
+ CSI ? 2 7 ; 1 ; 0 ; 0 n (North American).
The last two parameters apply to VT400 & up, and denote key-
board ready and LK01 respectively.
Ps = 5 3 -> Report Locator status as
CSI ? 5 3 n Locator available, if compiled-in, or
CSI ? 5 0 n No Locator, if not.
CSI > Ps p
- Set resource value pointerMode, used by xterm to decide
- whether to hide the pointer cursor as the user types. Valid
- values for the parameter:
- Ps = 0 -> never hide the pointer
- Ps = 1 -> hide if the mouse tracking mode is not enabled
- Ps = 2 -> always hide the pointer If no parameter is given,
- xterm uses the default, which is 1 .
-CSI ! p Soft terminal reset (DECSTR)
-CSI Ps$ p Request ANSI mode (DECRQM). For VT300 and up, reply is
+ Set resource value pointerMode. This is used by xterm to
+ decide whether to hide the pointer cursor as the user types.
+ Valid values for the parameter:
+ Ps = 0 -> never hide the pointer.
+ Ps = 1 -> hide if the mouse tracking mode is not enabled.
+ Ps = 2 -> always hide the pointer. If no parameter is
+ given, xterm uses the default, which is 1 .
+CSI ! p Soft terminal reset (DECSTR).
+CSI Ps$ p
+ Request ANSI mode (DECRQM). For VT300 and up, reply is
CSI Ps; Pm$ p
where Ps is the mode number as in RM, and Pm is the mode
value:
@@ -605,47 +621,47 @@ CSI ? Ps$ p
where Ps is the mode number as in DECSET, Pm is the mode value
as in the ANSI DECRQM.
CSI Ps ; Ps " p
- Set conformance level (DECSCL) Valid values for the first
+ Set conformance level (DECSCL). Valid values for the first
parameter:
- Ps = 6 1 -> VT100
- Ps = 6 2 -> VT200
- Ps = 6 3 -> VT300
+ Ps = 6 1 -> VT100.
+ Ps = 6 2 -> VT200.
+ Ps = 6 3 -> VT300.
Valid values for the second parameter:
- Ps = 0 -> 8-bit controls
- Ps = 1 -> 7-bit controls (always set for VT100)
- Ps = 2 -> 8-bit controls
-CSI Ps q Load LEDs (DECLL)
- Ps = 0 -> Clear all LEDS (default)
- Ps = 1 -> Light Num Lock
- Ps = 2 -> Light Caps Lock
- Ps = 3 -> Light Scroll Lock
- Ps = 2 1 -> Extinguish Num Lock
- Ps = 2 2 -> Extinguish Caps Lock
- Ps = 2 3 -> Extinguish Scroll Lock
+ Ps = 0 -> 8-bit controls.
+ Ps = 1 -> 7-bit controls (always set for VT100).
+ Ps = 2 -> 8-bit controls.
+CSI Ps q Load LEDs (DECLL).
+ Ps = 0 -> Clear all LEDS (default).
+ Ps = 1 -> Light Num Lock.
+ Ps = 2 -> Light Caps Lock.
+ Ps = 3 -> Light Scroll Lock.
+ Ps = 2 1 -> Extinguish Num Lock.
+ Ps = 2 2 -> Extinguish Caps Lock.
+ Ps = 2 3 -> Extinguish Scroll Lock.
CSI Ps SP q
- Set cursor style (DECSCUSR, VT520)
- Ps = 0 -> blinking block
- Ps = 1 -> blinking block (default)
- Ps = 2 -> steady block
- Ps = 3 -> blinking underline
- Ps = 4 -> steady underline
+ Set cursor style (DECSCUSR, VT520).
+ Ps = 0 -> blinking block.
+ Ps = 1 -> blinking block (default).
+ Ps = 2 -> steady block.
+ Ps = 3 -> blinking underline.
+ Ps = 4 -> steady underline.
CSI Ps " q
Select character protection attribute (DECSCA). Valid values
for the parameter:
- Ps = 0 -> DECSED and DECSEL can erase (default)
- Ps = 1 -> DECSED and DECSEL cannot erase
- Ps = 2 -> DECSED and DECSEL can erase
+ Ps = 0 -> DECSED and DECSEL can erase (default).
+ Ps = 1 -> DECSED and DECSEL cannot erase.
+ Ps = 2 -> DECSED and DECSEL can erase.
CSI Ps ; Ps r
Set Scrolling Region [top;bottom] (default = full size of win-
- dow) (DECSTBM)
+ dow) (DECSTBM).
CSI ? Pm r
Restore DEC Private Mode Values. The value of Ps previously
saved is restored. Ps values are the same as for DECSET.
CSI Pt; Pl; Pb; Pr; Ps$ r
Change Attributes in Rectangular Area (DECCARA), VT400 and up.
Pt; Pl; Pb; Pr denotes the rectangle.
- Ps denotes the SGR attributes to change: 0, 1, 4, 5, 7
-CSI s Save cursor (ANSI.SYS)
+ Ps denotes the SGR attributes to change: 0, 1, 4, 5, 7.
+CSI s Save cursor (ANSI.SYS).
CSI ? Pm s
Save DEC Private Mode Values. Ps values are the same as for
DECSET.
@@ -672,16 +688,18 @@ CSI Ps ; Ps ; Ps t
Ps = 1 1 -> Report xterm window state. If the xterm window
is open (non-iconified), it returns CSI 1 t . If the xterm
window is iconified, it returns CSI 2 t .
- Ps = 1 3 -> Report xterm window position as CSI 3 ; x ; y t
- Ps = 1 4 -> Report xterm window in pixels as CSI 4 ;
- height ; width t
- Ps = 1 8 -> Report the size of the text area in characters
- as CSI 8 ; height ; width t
- Ps = 1 9 -> Report the size of the screen in characters as
- CSI 9 ; height ; width t
- Ps = 2 0 -> Report xterm window's icon label as OSC L
+ Ps = 1 3 -> Report xterm window position. Result is CSI 3
+ ; x ; y t
+ Ps = 1 4 -> Report xterm window in pixels. Result is CSI
+ 4 ; height ; width t
+ Ps = 1 8 -> Report the size of the text area in characters.
+ Result is CSI 8 ; height ; width t
+ Ps = 1 9 -> Report the size of the screen in characters.
+ Result is CSI 9 ; height ; width t
+ Ps = 2 0 -> Report xterm window's icon label. Result is
+ OSC L label ST
+ Ps = 2 1 -> Report xterm window's title. Result is OSC l
label ST
- Ps = 2 1 -> Report xterm window's title as OSC l label ST
Ps = 2 2 ; 0 -> Save xterm icon and window title on
stack.
Ps = 2 2 ; 1 -> Save xterm icon title on stack.
@@ -690,33 +708,33 @@ CSI Ps ; Ps ; Ps t
stack.
Ps = 2 3 ; 1 -> Restore xterm icon title from stack.
Ps = 2 3 ; 2 -> Restore xterm window title from stack.
- Ps >= 2 4 -> Resize to Ps lines (DECSLPP)
+ Ps >= 2 4 -> Resize to Ps lines (DECSLPP).
CSI Pt; Pl; Pb; Pr; Ps$ t
Reverse Attributes in Rectangular Area (DECRARA), VT400 and
up.
Pt; Pl; Pb; Pr denotes the rectangle.
- Ps denotes the attributes to reverse, i.e., 1, 4, 5, 7
+ Ps denotes the attributes to reverse, i.e., 1, 4, 5, 7.
CSI > Ps; Ps t
Set one or more features of the title modes. Each parameter
enables a single feature.
- Ps = 0 -> Set window/icon labels using hexadecimal
- Ps = 1 -> Query window/icon labels using hexadecimal
- Ps = 2 -> Set window/icon labels using UTF-8
- Ps = 3 -> Query window/icon labels using UTF-8 (See discus-
- sion of "Title Modes")
+ Ps = 0 -> Set window/icon labels using hexadecimal.
+ Ps = 1 -> Query window/icon labels using hexadecimal.
+ Ps = 2 -> Set window/icon labels using UTF-8.
+ Ps = 3 -> Query window/icon labels using UTF-8. (See dis-
+ cussion of "Title Modes")
CSI Ps SP t
- Set warning-bell volume (DECSWBV, VT520)
- Ps = 0 or 1 -> off
- Ps = 2 , 3 or 4 -> low
- Ps = 5 , 6 , 7 , or 8 -> high
-CSI u Restore cursor (ANSI.SYS)
+ Set warning-bell volume (DECSWBV, VT520).
+ Ps = 0 or 1 -> off.
+ Ps = 2 , 3 or 4 -> low.
+ Ps = 5 , 6 , 7 , or 8 -> high.
+CSI u Restore cursor (ANSI.SYS).
CSI Ps SP u
- Set margin-bell volume (DECSMBV, VT520)
- Ps = 1 -> off
- Ps = 2 , 3 or 4 -> low
- Ps = 0 , 5 , 6 , 7 , or 8 -> high
+ Set margin-bell volume (DECSMBV, VT520).
+ Ps = 1 -> off.
+ Ps = 2 , 3 or 4 -> low.
+ Ps = 0 , 5 , 6 , 7 , or 8 -> high.
CSI Pt; Pl; Pb; Pr; Pp; Pt; Pl; Pp$ v
- Copy Rectangular Area (DECCRA, VT400 and up)
+ Copy Rectangular Area (DECCRA, VT400 and up).
Pt; Pl; Pb; Pr denotes the rectangle.
Pp denotes the source page.
Pt; Pl denotes the target location.
@@ -732,58 +750,59 @@ CSI Pt ; Pl ; Pb ; Pr ' w
to the current locator position. If all parameters are omit-
ted, any locator motion will be reported. DECELR always can-
cels any prevous rectangle definition.
-CSI Ps x Request Terminal Parameters (DECREQTPARM)
+CSI Ps x Request Terminal Parameters (DECREQTPARM).
if Ps is a "0" (default) or "1", and xterm is emulating VT100,
the control sequence elicits a response of the same form whose
parameters describe the terminal:
Ps -> the given Ps incremented by 2.
- 1 -> no parity
- 1 -> eight bits
- 1 2 8 -> transmit 38.4k baud
- 1 2 8 -> receive 38.4k baud
- 1 -> clock multiplier
- 0 -> STP flags
+ Pn = 1 <- no parity.
+ Pn = 1 <- eight bits.
+ Pn = 1 <- 2 8 transmit 38.4k baud.
+ Pn = 1 <- 2 8 receive 38.4k baud.
+ Pn = 1 <- clock multiplier.
+ Pn = 0 <- STP flags.
CSI Ps x Select Attribute Change Extent (DECSACE).
- Ps = 0 -> from start to end position, wrapped
- Ps = 1 -> from start to end position, wrapped
+ Ps = 0 -> from start to end position, wrapped.
+ Ps = 1 -> from start to end position, wrapped.
Ps = 2 -> rectangle (exact).
CSI Pc; Pt; Pl; Pb; Pr$ x
Fill Rectangular Area (DECFRA), VT420 and up.
Pc is the character to use.
Pt; Pl; Pb; Pr denotes the rectangle.
CSI Ps ; Pu ' z
- Enable Locator Reporting (DECELR)
+ Enable Locator Reporting (DECELR).
Valid values for the first parameter:
- Ps = 0 -> Locator disabled (default)
- Ps = 1 -> Locator enabled
- Ps = 2 -> Locator enabled for one report, then disabled
+ Ps = 0 -> Locator disabled (default).
+ Ps = 1 -> Locator enabled.
+ Ps = 2 -> Locator enabled for one report, then disabled.
The second parameter specifies the coordinate unit for locator
reports.
Valid values for the second parameter:
- Pu = 0 or omitted -> default to character cells
- Pu = 1 -> device physical pixels
- Pu = 2 -> character cells
+ Pu = 0 <- or omitted -> default to character cells.
+ Pu = 1 <- device physical pixels.
+ Pu = 2 <- character cells.
CSI Pt; Pl; Pb; Pr$ z
Erase Rectangular Area (DECERA), VT400 and up.
Pt; Pl; Pb; Pr denotes the rectangle.
CSI Pm ' {
- Select Locator Events (DECSLE)
+ Select Locator Events (DECSLE).
Valid values for the first (and any additional parameters)
are:
- Ps = 0 -> only respond to explicit host requests (DECRQLP)
- (default) also cancels any filter rectangle
- Ps = 1 -> report button down transitions
- Ps = 2 -> do not report button down transitions
- Ps = 3 -> report button up transitions
- Ps = 4 -> do not report button up transitions
+ Ps = 0 -> only respond to explicit host requests (DECRQLP).
+ (This is default). It also cancels any filter
+ rectangle.
+ Ps = 1 -> report button down transitions.
+ Ps = 2 -> do not report button down transitions.
+ Ps = 3 -> report button up transitions.
+ Ps = 4 -> do not report button up transitions.
CSI Pt; Pl; Pb; Pr$ {
Selective Erase Rectangular Area (DECSERA), VT400 and up.
Pt; Pl; Pb; Pr denotes the rectangle.
CSI Ps ' |
- Request Locator Position (DECRQLP)
+ Request Locator Position (DECRQLP).
Valid values for the parameter are:
Ps = 0 , 1 or omitted -> transmit a single DECLRP locator
- report
+ report.
If Locator Reporting has been enabled by a DECELR, xterm will
respond with a DECLRP Locator Report. This report is also
@@ -796,24 +815,24 @@ CSI Ps ' |
Parameters are [event;button;row;column;page].
Valid values for the event:
- Pe = 0 -> locator unavailable - no other parameters sent
- Pe = 1 -> request - xterm received a DECRQLP
- Pe = 2 -> left button down
- Pe = 3 -> left button up
- Pe = 4 -> middle button down
- Pe = 5 -> middle button up
- Pe = 6 -> right button down
- Pe = 7 -> right button up
- Pe = 8 -> M4 button down
- Pe = 9 -> M4 button up
- Pe = 1 0 -> locator outside filter rectangle
+ Pe = 0 -> locator unavailable - no other parameters sent.
+ Pe = 1 -> request - xterm received a DECRQLP.
+ Pe = 2 -> left button down.
+ Pe = 3 -> left button up.
+ Pe = 4 -> middle button down.
+ Pe = 5 -> middle button up.
+ Pe = 6 -> right button down.
+ Pe = 7 -> right button up.
+ Pe = 8 -> M4 button down.
+ Pe = 9 -> M4 button up.
+ Pe = 1 0 -> locator outside filter rectangle.
``button'' parameter is a bitmask indicating which buttons are
pressed:
- Pb = 0 -> no buttons down
- Pb & 1 -> right button down
- Pb & 2 -> middle button down
- Pb & 4 -> left button down
- Pb & 8 -> M4 button down
+ Pb = 0 <- no buttons down.
+ Pb & 1 <- right button down.
+ Pb & 2 <- middle button down.
+ Pb & 4 <- left button down.
+ Pb & 8 <- M4 button down.
``row'' and ``column'' parameters are the coordinates of the
locator position in the xterm window, encoded as ASCII deci-
mal.
@@ -828,18 +847,18 @@ OSC Ps ; Pt BEL
trol sequence which would set the corresponding value. The
dtterm control sequences allow you to determine the icon name
and window title.
- Ps = 0 -> Change Icon Name and Window Title to Pt
- Ps = 1 -> Change Icon Name to Pt
- Ps = 2 -> Change Window Title to Pt
+ Ps = 0 -> Change Icon Name and Window Title to Pt.
+ Ps = 1 -> Change Icon Name to Pt.
+ Ps = 2 -> Change Window Title to Pt.
Ps = 3 -> Set X property on top-level window. Pt should be
in the form "prop=value", or just "prop" to delete the prop-
erty
Ps = 4 ; c ; spec -> Change Color Number c to the color
- specified by spec, i.e., a name or RGB specification as per
- XParseColor. Any number of c name pairs may be given. The
- color numbers correspond to the ANSI colors 0-7, their bright
- versions 8-15, and if supported, the remainder of the 88-color
- or 256-color table.
+ specified by spec. This can be a name or RGB specification as
+ per XParseColor. Any number of c name pairs may be given.
+ The color numbers correspond to the ANSI colors 0-7, their
+ bright versions 8-15, and if supported, the remainder of the
+ 88-color or 256-color table.
If a "?" is given rather than a name or RGB specification,
xterm replies with a control sequence of the same form which
@@ -848,15 +867,15 @@ OSC Ps ; Pt BEL
control sequence, xterm can make more than one reply.
Ps = 5 ; c ; spec -> Change Special Color Number c to the
- color specified by spec, i.e., a name or RGB specification as
- per XParseColor. Any number of c name pairs may be given.
- The special colors can also be set by adding the maximum num-
- ber of colors to these codes in an OSC 4 control:
+ color specified by spec. This can be a name or RGB specifica-
+ tion as per XParseColor. Any number of c name pairs may be
+ given. The special colors can also be set by adding the maxi-
+ mum number of colors to these codes in an OSC 4 control:
- Pc = 0 -> resource colorBD (BOLD)
- Pc = 1 -> resource colorUL (UNDERLINE)
- Pc = 2 -> resource colorBL (BLINK)
- Pc = 3 -> resource colorRV (REVERSE)
+ Pc = 0 <- resource colorBD (BOLD).
+ Pc = 1 <- resource colorUL (UNDERLINE).
+ Pc = 2 <- resource colorBL (BLINK).
+ Pc = 3 <- resource colorRV (REVERSE).
The 8 colors (below) which may be set or queried using 1 0
through 1 7 are denoted dynamic colors, since the correspond-
@@ -876,21 +895,21 @@ OSC Ps ; Pt BEL
given in one control sequence, xterm can make more than one
reply.
- Ps = 1 0 -> Change VT100 text foreground color to Pt
- Ps = 1 1 -> Change VT100 text background color to Pt
- Ps = 1 2 -> Change text cursor color to Pt
- Ps = 1 3 -> Change mouse foreground color to Pt
- Ps = 1 4 -> Change mouse background color to Pt
- Ps = 1 5 -> Change Tektronix foreground color to Pt
- Ps = 1 6 -> Change Tektronix background color to Pt
- Ps = 1 7 -> Change highlight background color to Pt
- Ps = 1 8 -> Change Tektronix cursor color to Pt
- Ps = 1 9 -> Change highlight foreground color to Pt
-
- Ps = 4 6 -> Change Log File to Pt (normally disabled by a
- compile-time option)
-
- Ps = 5 0 -> Set Font to Pt These controls may be disabled
+ Ps = 1 0 -> Change VT100 text foreground color to Pt.
+ Ps = 1 1 -> Change VT100 text background color to Pt.
+ Ps = 1 2 -> Change text cursor color to Pt.
+ Ps = 1 3 -> Change mouse foreground color to Pt.
+ Ps = 1 4 -> Change mouse background color to Pt.
+ Ps = 1 5 -> Change Tektronix foreground color to Pt.
+ Ps = 1 6 -> Change Tektronix background color to Pt.
+ Ps = 1 7 -> Change highlight background color to Pt.
+ Ps = 1 8 -> Change Tektronix cursor color to Pt.
+ Ps = 1 9 -> Change highlight foreground color to Pt.
+
+ Ps = 4 6 -> Change Log File to Pt. (This is normally dis-
+ abled by a compile-time option).
+
+ Ps = 5 0 -> Set Font to Pt. These controls may be disabled
using the allowFontOps resource. If Pt begins with a "#",
index in the font menu, relative (if the next character is a
plus or minus sign) or absolute. A number is expected but not
@@ -904,7 +923,7 @@ OSC Ps ; Pt BEL
resource), then this control sets/queries the faceName
resource.
- Ps = 5 1 (reserved for Emacs shell)
+ Ps = 5 1 (reserved for Emacs shell).
Ps = 5 2 -> Manipulate Selection Data. These controls may
be disabled using the allowWindowOps resource. The parameter
@@ -923,18 +942,19 @@ OSC Ps ; Pt BEL
If the second parameter is a ? , xterm replies to the host
with the selection data encoded using the same protocol.
- Ps = 1 0 4 ; c -> Reset Color Number c to the color speci-
- fied by the corresponding X resource. Any number of c parame-
- ters may be given. These parameters correspond to the ANSI
- colors 0-7, their bright versions 8-15, and if supported, the
- remainder of the 88-color or 256-color table. If no parame-
- ters are given, the entire table will be reset.
+ Ps = 1 0 4 ; c -> Reset Color Number c. It is reset to the
+ color specified by the corresponding X resource. Any number
+ of c parameters may be given. These parameters correspond to
+ the ANSI colors 0-7, their bright versions 8-15, and if sup-
+ ported, the remainder of the 88-color or 256-color table. If
+ no parameters are given, the entire table will be reset.
- Ps = 1 0 5 ; c -> Reset Special Color Number c to the color
- specified by the corresponding X resource. Any number of c
- parameters may be given. These parameters correspond to the
- special colors which can be set using an OSC 5 control (or by
- adding the maximum number of colors using an OSC 4 control).
+ Ps = 1 0 5 ; c -> Reset Special Color Number c. It is
+ reset to the color specified by the corresponding X resource.
+ Any number of c parameters may be given. These parameters
+ correspond to the special colors which can be set using an OSC
+ 5 control (or by adding the maximum number of colors using an
+ OSC 4 control).
The dynamic colors can also be reset to their default
(resource) values:
@@ -948,7 +968,6 @@ OSC Ps ; Pt BEL
Ps = 1 1 7 -> Reset highlight color.
Ps = 1 1 8 -> Reset Tektronix cursor color.
-
Privacy Message
PM Pt ST xterm implements no PM functions; Pt is ignored. Pt need not
be printable characters.
@@ -1011,7 +1030,7 @@ scrolling keypads.
X does not predefine NumLock (used for VT220 keyboards) or Alt (used as
an extension for the Sun/PC keyboards) as modifiers. These keys are
recognized as modifiers when enabled by the numLock resource, or by the
-DECSET 1 0 3 5 control sequence.
+"DECSET 1 0 3 5 " control sequence.
The cursor keys transmit the following escape sequences depending on the
mode specified via the DECCKM escape sequence.
@@ -1071,7 +1090,7 @@ supported by the program.
--------------------------------------------------------------
They also provide 12 function keys, as well as a few other special-pur-
-pose keys.
+pose keys:
Key Escape Sequence
---------------------------
@@ -1277,7 +1296,9 @@ Bracketed Paste Mode
When bracketed paste mode is set, pasted text is bracketed with control
sequences so that the program can differentiate pasted text from typed-
in text. When bracketed paste mode is set, the program will receive:
-ESC [ 200 ~, followed by the pasted text, followed by ESC [ 201 ~.
+ ESC [ 200 ~,
+followed by the pasted text, followed by
+ ESC [ 201 ~.
Title Modes
The window- and icon-labels can be set or queried using control
@@ -1317,7 +1338,7 @@ There are six mutually exclusive modes. One is DEC Locator mode,
enabled by the DECELR CSI Ps ; Ps ' z control sequence, and is not
described here (control sequences are summarized above). The remaining
five modes are each enabled (or disabled) by a different parameter in
-DECSET CSI ? Pm h or DECRST CSI ? Pm l control sequence.
+the "DECSET CSI ? Pm h " or "DECRST CSI ? Pm l " control sequence.
Manifest constants for the parameter values are defined in xcharmouse.h
as follows:
@@ -1442,53 +1463,53 @@ major features missing are the write-through and defocused modes. This
document does not describe the commands used in the various Tektronix
plotting modes but does describe the commands to switch modes.
-BEL Bell (Ctrl-G)
-BS Backspace (Ctrl-H)
-TAB Horizontal Tab (Ctrl-I)
-LF Line Feed or New Line (Ctrl-J)
-VT Cursor up (Ctrl-K)
-FF Form Feed or New Page (Ctrl-L)
-CR Carriage Return (Ctrl-M)
-ESC ETX Switch to VT100 Mode (ESC Ctrl-C)
-ESC ENQ Return Terminal Status (ESC Ctrl-E)
-ESC FF PAGE (Clear Screen) (ESC Ctrl-L)
-ESC SO Begin 4015 APL mode (ignored by xterm) (ESC Ctrl-N)
-ESC SI End 4015 APL mode (ignored by xterm) (ESC Ctrl-O)
-ESC ETB COPY (Save Tektronix Codes to file COPYyyyy-mm-dd.hh:mm:ss)
- (ESC Ctrl-W)
-ESC CAN Bypass Condition (ESC Ctrl-X)
-ESC SUB GIN mode (ESC Ctrl-Z)
-ESC FS Special Point Plot Mode (ESC Ctrl-\)
-ESC 8 Select Large Character Set
-ESC 9 Select #2 Character Set
-ESC : Select #3 Character Set
-ESC ; Select Small Character Set
+BEL Bell (Ctrl-G).
+BS Backspace (Ctrl-H).
+TAB Horizontal Tab (Ctrl-I).
+LF Line Feed or New Line (Ctrl-J).
+VT Cursor up (Ctrl-K).
+FF Form Feed or New Page (Ctrl-L).
+CR Carriage Return (Ctrl-M).
+ESC ETX Switch to VT100 Mode (ESC Ctrl-C).
+ESC ENQ Return Terminal Status (ESC Ctrl-E).
+ESC FF PAGE (Clear Screen) (ESC Ctrl-L).
+ESC SO Begin 4015 APL mode (ESC Ctrl-N). (This is ignored by xterm).
+ESC SI End 4015 APL mode (ESC Ctrl-O). (This is ignored by xterm).
+ESC ETB COPY (Save Tektronix Codes to file COPYyyyy-mm-dd.hh:mm:ss).
+ ETB (end transmission block) is the same as Ctrl-W.
+ESC CAN Bypass Condition (ESC Ctrl-X).
+ESC SUB GIN mode (ESC Ctrl-Z).
+ESC FS Special Point Plot Mode (ESC Ctrl-\).
+ESC 8 Select Large Character Set.
+ESC 9 Select #2 Character Set.
+ESC : Select #3 Character Set.
+ESC ; Select Small Character Set.
OSC Ps ; Pt BEL
- Set Text Parameters of VT window
- Ps = 0 -> Change Icon Name and Window Title to Pt
- Ps = 1 -> Change Icon Name to Pt
- Ps = 2 -> Change Window Title to Pt
- Ps = 4 6 -> Change Log File to Pt (normally disabled by a
- compile-time option)
-ESC ` Normal Z Axis and Normal (solid) Vectors
-ESC a Normal Z Axis and Dotted Line Vectors
-ESC b Normal Z Axis and Dot-Dashed Vectors
-ESC c Normal Z Axis and Short-Dashed Vectors
-ESC d Normal Z Axis and Long-Dashed Vectors
-ESC h Defocused Z Axis and Normal (solid) Vectors
-ESC i Defocused Z Axis and Dotted Line Vectors
-ESC j Defocused Z Axis and Dot-Dashed Vectors
-ESC k Defocused Z Axis and Short-Dashed Vectors
-ESC l Defocused Z Axis and Long-Dashed Vectors
-ESC p Write-Thru Mode and Normal (solid) Vectors
-ESC q Write-Thru Mode and Dotted Line Vectors
-ESC r Write-Thru Mode and Dot-Dashed Vectors
-ESC s Write-Thru Mode and Short-Dashed Vectors
-ESC t Write-Thru Mode and Long-Dashed Vectors
-FS Point Plot Mode (Ctrl-\)
-GS Graph Mode (Ctrl-])
-RS Incremental Plot Mode (Ctrl-^)
-US Alpha Mode (Ctrl-_)
+ Set Text Parameters of VT window.
+ Ps = 0 -> Change Icon Name and Window Title to Pt.
+ Ps = 1 -> Change Icon Name to Pt.
+ Ps = 2 -> Change Window Title to Pt.
+ Ps = 4 6 -> Change Log File to Pt. (This is normally dis-
+ abled by a compile-time option).
+ESC ` Normal Z Axis and Normal (solid) Vectors.
+ESC a Normal Z Axis and Dotted Line Vectors.
+ESC b Normal Z Axis and Dot-Dashed Vectors.
+ESC c Normal Z Axis and Short-Dashed Vectors.
+ESC d Normal Z Axis and Long-Dashed Vectors.
+ESC h Defocused Z Axis and Normal (solid) Vectors.
+ESC i Defocused Z Axis and Dotted Line Vectors.
+ESC j Defocused Z Axis and Dot-Dashed Vectors.
+ESC k Defocused Z Axis and Short-Dashed Vectors.
+ESC l Defocused Z Axis and Long-Dashed Vectors.
+ESC p Write-Thru Mode and Normal (solid) Vectors.
+ESC q Write-Thru Mode and Dotted Line Vectors.
+ESC r Write-Thru Mode and Dot-Dashed Vectors.
+ESC s Write-Thru Mode and Short-Dashed Vectors.
+ESC t Write-Thru Mode and Long-Dashed Vectors.
+FS Point Plot Mode (Ctrl-\).
+GS Graph Mode (Ctrl-]).
+RS Incremental Plot Mode (Ctrl-^).
+US Alpha Mode (Ctrl-_).
VT52 Mode
Parameters for cursor movement are at the end of the ESC Y escape
@@ -1507,8 +1528,8 @@ ESC J Erase from the cursor to the end of the screen.
ESC K Erase from the cursor to the end of the line.
ESC Y Ps Ps
Move the cursor to given row and column.
-ESC Z Identify
- -> ESC / Z (``I am a VT52.'')
+ESC Z Identify.
+ -> ESC / Z (``I am a VT52.'').
ESC = Enter alternate keypad mode.
ESC > Exit alternate keypad mode.
ESC < Exit VT52 mode (Enter VT100 mode).