Global

Members

<readonly> chr :function|string

handlers for command characters
Type:
  • function | string
Properties:
Name Type Default Description
"" function | string FUNCTION BELL
"" function | string FUNCTION BACKSPACE
" " function | string FUNCTION TAB
"" function | string FUNCTION DELETE
"ˆ" function | string FUNCTION TABSET
"" function | string FUNCTION SO
"" function | string FUNCTION SI
"" function | string FUNCTION ESCAPE
" " function | string FUNCTION CARRIAGE RETURN
Source:

<readonly> csi :function|string

csi command handlers
Type:
  • function | string
Properties:
Name Type Default Description
"@" function | string FUNCTION CSI Ps @
Insert Ps (Blank) Character(s) (default = 1) (ICH)
A function | string FUNCTION CSI Ps A
Cursor Up Ps Times (default = 1) (CUU)
B function | string FUNCTION CSI Ps B
Cursor Down Ps Times (default = 1) (CUD)
C function | string FUNCTION CSI Ps C
Cursor Forward Ps Times (default = 1) (CUF)
D function | string FUNCTION CSI Ps D
Cursor backward Ps Times (default = 1) (CUB)
E function | string FUNCTION CSI Ps E
Cursor down Ps Rows, to column 1 (default = 1) (CNL , NEL)
F function | string FUNCTION CSI Ps F
Cursor Preceding Line PS Times (default = 1) (CPL)
G function | string FUNCTION CSI Ps G
Cursor Character Absolute [column] (default = [row,1]) (CHA)
H function | string FUNCTION CSI Ps ; Ps H
Cursor Position [row;column] (default = [1,1]) (CUP)
I function | string FUNCTION CSI Ps I
Cursor Forward Tabulation Ps tab stops (default = 1) (CHT)
J function | string FUNCTION CSI Ps J
Erase in Display (default = 0) (ED)
  • J - erase from cursor to end of display
  • 0J - erase from cursor to end of display
  • 1J - erase from start to cursor
  • 2J - erase whole display
K function | string FUNCTION CSI Ps K
Erase in Line (default = 0) (EL)
  • K - erase from cursor to end of line
  • 0K - erase from cursor to end of line
  • 1K - erase from start of line to cursor
  • 2K - erase whole line
L function | string FUNCTION CSI Ps L
Insert Ps Line(s) (default = 1) (IL)
M function | string FUNCTION CSI Ps M
Delete Ps Line(s) (default = 1) (DL)
P function | string FUNCTION CSI Ps P
Delete Ps Character(s) (default = 1) (DCH)
R function | string FUNCTION CSI Pl ; Pc R
Report cursor pAosition (CPR)
  • Pl indicates what line the cursor is on
  • Pr indicated what row the cursor is on
S function | string FUNCTION CSI Ps S
Scroll up Ps lines (default = 1) (SU)
T function | string FUNCTION CSI Ps T
Scroll down Ps lines (default = 1) (SD)
CSI Ps ; Ps ; Ps ; Ps ; Ps T
Initiate highlight mouse tracking
CSI > Ps; Ps T
X function | string FUNCTION CSI Ps X
Erase Ps Character(s) (default = 1) (ECH)
Z function | string FUNCTION CSI Ps Z
Cursor Backward Tabulation Ps tab stops (default = 1) (CBT)
a function | string FUNCTION CSI Ps a
Move cursor right the indicated # of columns (default = 1) (HPR)
b function | string FUNCTION CSI Ps b
Repeat the preceding graphic character Ps times (REP)
c function | string FUNCTION CSI P s c
Send Device Attributes (Primary DA)
CSI > P s c
Send Device Attributes (Secondary DA)
d function | string FUNCTION CSI Pm d
Line Position Absolute [row] (default = [1,column]) (VPA)
e function | string FUNCTION CSI Pm e
Vertical position relative. Move cursor down the indicated # of rows (default = 1) (VPR)
f function | string FUNCTION CSI Ps ; Ps f
Horizontal and Vertical Position [row;column] (default = [1,1]) (HVP)
g function | string FUNCTION CSI Ps g
Tab Clear (default = 0) (TBC)
h function | string FUNCTION CSI Pm h
Set Mode (SM)
CSI ? Pm h - mouse escape codes, cursor escape codes
i function | string FUNCTION CSI Pm i Media Copy (MC)
CSI ? Pm i
l function | string FUNCTION CSI Pm l Reset Mode (RM)
CSI ? Pm l
m function | string FUNCTION CSI Pm m
Character Attributes (SGR)
CSI > Ps; Ps m
n function | string FUNCTION CSI Ps n Device Status Report (DSR)
CSI > Ps n
  • 5n - Device Status report
  • 0n - Response: terminal is OK
  • 3n - Response: terminal is not OK
  • 6n - Request cursor position (CPR)
p function | string FUNCTION CSI > Ps p Set pointer mode
CSI ! p Soft terminal reset (DECSTR)
CSI Ps$ p
Request ANSI mode (DECRQM)
CSI ? Ps$ p
Request DEC private mode (DECRQM)
CSI Ps ; Ps " p
q function | string FUNCTION CSI Ps q
Load LEDs (DECLL)
CSI Ps SP q
CSI Ps " q
  • 0q - turn off all four leds
  • 1q - turn on Led #1
  • 2q - turn on Led #2
  • 3q - turn on Led #3
  • 4q - turn on Led #4
r function | string FUNCTION CSI Ps ; Ps r
Set Scrolling Region [top;bottom] (default = full size of window) (DECSTBM)
CSI ? Pm r
CSI Pt; Pl; Pb; Pr; Ps$ r
s function | string FUNCTION CSI ? Pm s
Save cursor (ANSI.SYS)
t function | string FUNCTION CSI t
unknown
u function | string FUNCTION CSI Ps SP u
Restore cursor (ANSI.SYS)
v function | string FUNCTION CSI Pt; Pl; Pb; Pr; Pp; Pt; Pl; Pp$ v
(DECCRA)
w function | string FUNCTION CSI Pt ; Pl ; Pb ; Pr ' w
(DECEFR)
x function | string FUNCTION CSI Ps x Request Terminal Parameters (DECREQTPARM)
CSI Ps x Select Attribute Change Extent (DECSACE)
CSI Pc; Pt; Pl; Pb; Pr$ x
y function | string FUNCTION Request Checksum of Rectangular Area DECRQCRA
z function | string FUNCTION CSI Ps ; Pu ' z
CSI Pt; Pl; Pb; Pr$ z
(DECELR) / (DECERA) Erase rectangular area
"`" function | string FUNCTION CSI Pm ` Character Position Absolute
[column] (default = [row,1]) (HPA)
"{" function | string FUNCTION CSI Pm ' {
CSI Pt; Pl; Pb; Pr$ {
Selectively erase retangular area (DECSLE) / (DECSERA)
"|" function | string FUNCTION CSI Ps ' |
Request locator position (DECRQLP)
"}" function | string FUNCTION CSI P m SP }
Insert P s Column(s) (default = 1) (DECIC), VT420 and up
"~" function | string FUNCTION CSI P m SP ~
Delete P s Column(s) (default = 1) (DECDC), VT420 and up
Source:

<readonly> esc :function|string

esc command handlers Currently we ignore all DCS codes
Type:
  • function | string
Properties:
Name Type Default Description
c function | string FUNCTION ESC c
Full Reset (RIS)
D function | string FUNCTION ESC D
Index (IND is 0x84) Moves cursor down one line in same column. If cursor is at bottom margin, screen performs a scroll-up.
E function | string FUNCTION ESC E
Next Line (NEL is 0x85) This sequence causes the active position to move to the first position on the next line downward If the active position is at the bottom margin, a scroll up is performed
H function | string FUNCTION ESC H
Tab Set (HTS is 0x88)
M function | string FUNCTION ESC M
Reverse Index (RI is 0x8d) Move the active position to the same horizontal position on the preceding line. If the active position is at the top margin, a scroll down is performed
N function | string FUNCTION ESC N
Single Shift Select of G2 Character Set (SS2 is 0x8e). This affects next character only
O function | string FUNCTION ESC O
Single Shift Select of G3 Character Set (SS3 is 0x8f). This affects next character only
P function | string FUNCTION ESC P
Device Control String (DCS is 0x90)
Q function | string FUNCTION ESC Q
Private Use 1 (PU1)
R function | string FUNCTION ESC R
Private Use 2 (PU2)
S function | string FUNCTION ESC S
Set Transmit State (STS)
T function | string FUNCTION ESC T
Cancel Character, ignore previous character (CCH)
U function | string FUNCTION ESC U
Message Waiting, turns on an indicator on the terminal (MW)
V function | string FUNCTION ESC V
Start of Protected Area (SPA)
W function | string FUNCTION ESC W
End of Protected Area (EPA)
X function | string FUNCTION ESC X
Reserved
Y function | string FUNCTION ESC Y
Reserved
Z function | string FUNCTION ESC Z
DECID Dec Private identification The kernel returns the string ESC [ ? 6 c , claiming it is a VT102
n function | string FUNCTION ESC n
Invoke the G2 Character Set as GL (LS2)
o function | string FUNCTION ESC o
Invoke the G3 Character Set as GL (LS3)
"7" function | string FUNCTION ESC 7
Save Cursor (DECSC)
"8" function | string FUNCTION ESC 8
Restore Cursor (DECRC)
"|" function | string FUNCTION ESC |
Invoke the G3 Character Set as GR (LS3R)
"[" function | string FUNCTION ESC [
Control sequence introducer (CSI)
"\" function | string FUNCTION ESC \
7-bit - File Separator (FS) 8-bit - String Terminator (VT125 exits graphics) (ST)
"]" function | string FUNCTION ESC ]
7-bit - Group Separator (GS) 8-bit - Operating System Command (OSC is 0x9d)
"^" function | string FUNCTION ESC ^
Privacy Message (password verification), terminaed by ST (PM is 0x9e) (PM)
_ function | string FUNCTION ESC _
Application Program Command (to word processor), term by ST (APC is 0x9f) (APC)
"%" function | string FUNCTION ESC %
Select default/utf-8 character set. @ = default, G = utf-8; 8 (Obsolete)
"}" function | string FUNCTION ESC }
Invoke the G2 Character Set as GR (LS2R)
"~" function | string FUNCTION ESC ~
Invoke the G1 Character Set as GR (LS1R)
"(" function | string FUNCTION ESC ( ) * + - .
TODO
")" function | string .
"*" function | string .
"+" function | string .
"-" function | string .
"." function | string FUNCTION
"#" function | string FUNCTION ESC #
3 DEC line height/width
g function | string FUNCTION ESC g
Visual Bell
"<" function | string FUNCTION ESC <
The terminal interprets all sequences according to ANSI standards X3.64-1979 and X3.41-1974. The VT52 escape sequences described in this chapter are not recognized. (DECANM)
">" function | string FUNCTION ESC >
(set numeric keypad mode?) Normal Keypad (DECPNM)
"=" function | string FUNCTION ESC =
Application Keypad (DECPAM) Serial port requested application keyboard
Source:

<readonly> mode :function|string

handlers for Mode escape characters
Type:
  • function | string
Properties:
Name Type Default Description
"1" function | string CALL
"4" function | string CALL
"?5" function | string CALL
"7" function | string CALL
"?12" function | string CALL
"20" function | string CALL
"?25" function | string CALL
"?47" function | string FUNCTION
"?1000" function | string CALL
"?1002" function | string CALL
"?1047" function | string FUNCTION
"?1048" function | string FUNCTION
"?1049" function | string FUNCTION
Source:

<readonly> osc :function|string

handlers for OSC escape characters
Type:
  • function | string
Properties:
Name Type Default Description
"" function | string 0
"0" function | string FUNCTION
"1" function | string CALL
"2" function | string CALL
"3" function | string FUNCTION
"4" function | string FUNCTION
"5" function | string FUNCTION
"10" function | string CALL
"11" function | string CALL
"12" function | string CALL
"13" function | string CALL
"14" function | string CALL
"15" function | string CALL
"16" function | string CALL
"17" function | string CALL
"18" function | string CALL
"19" function | string CALL
"46" function | string CALL
"50" function | string CALL
"51" function | string CALL
"52" function | string FUNCTION
"104" function | string FUNCTION
"105" function | string FUNCTION
"110" function | string CALL
"111" function | string CALL
"112" function | string CALL
"113" function | string CALL
"114" function | string CALL
"115" function | string CALL
"116" function | string CALL
"117" function | string CALL
"118" function | string CALL
"119" function | string CALL
Source:

<readonly> sgr :function|string

handlers for SGR escape characters
Type:
  • function | string
Properties:
Name Type Default Description
"0" function | string FUNCTION
"1" function | string CALL
"2" function | string FUNCTION
"3" function | string CALL
"4" function | string CALL
"5" function | string 6
"6" function | string CALL
"7" function | string CALL
"8" function | string FUNCTION
"9" function | string FUNCTION
"20" function | string FUNCTION
"21" function | string FUNCTION
"22" function | string CALL
"23" function | string CALL
"24" function | string CALL
"25" function | string CALL
"27" function | string CALL
"30" function | string 37
"31" function | string 37
"32" function | string 37
"33" function | string 37
"34" function | string 37
"35" function | string 37
"36" function | string 37
"37" function | string FUNCTION
"38" function | string FUNCTION
"39" function | string FUNCTION
"40" function | string 47
"41" function | string 47
"42" function | string 47
"43" function | string 47
"44" function | string 47
"45" function | string 47
"46" function | string 47
"47" function | string FUNCTION
"48" function | string FUNCTION
"49" function | string FUNCTION
"51" function | string FUNCTION
"52" function | string FUNCTION
"53" function | string FUNCTION
"90" function | string 97
"91" function | string 97
"92" function | string 97
"93" function | string 97
"94" function | string 97
"95" function | string 97
"96" function | string 97
"97" function | string FUNCTION
"100" function | string 107
"101" function | string 107
"102" function | string 107
"103" function | string 107
"104" function | string 107
"105" function | string 107
"106" function | string 107
"107" function | string FUNCTION
Source: