Difference between revisions of "CodeChart:ANSI/ESC/CSI"

From Terminals
Jump to: navigation, search
m (mc parameter)
m (color links)
Line 7: Line 7:
 
|-
 
|-
 
! 0
 
! 0
| NUL || DLE || [[{{FULLPAGENAME}}/SP|'''SP''']] || 0 || [[#ICH|'''@''']] || [[#DCH|'''P''']] || [[#HPA|'''`''']] || p
+
| NUL || DLE || style="background-color: khaki;" | [[{{FULLPAGENAME}}/SP|'''SP''']] || 0 || style="background-color: khaki;" | [[#ICH|'''@''']] || style="background-color: khaki;" | [[#DCH|'''P''']] || style="background-color: khaki;" | [[#HPA|'''`''']] || p
 
|-
 
|-
 
! 1
 
! 1
| SOH || DC1 || !  || 1 || [[#CUU|'''A''']] || [[#SEE|'''Q''']] || [[#HPR|'''a''']] || q
+
| SOH || DC1 || !  || 1 || style="background-color: khaki;" | [[#CUU|'''A''']] || style="background-color: khaki;" | [[#SEE|'''Q''']] || style="background-color: khaki;" | [[#HPR|'''a''']] || q
 
|-
 
|-
 
! 2
 
! 2
| STX || DC2 || "  || 2 || [[#CUD|'''B''']] || [[#CPR|'''R''']] || [[#REP|'''b''']] || r
+
| STX || DC2 || "  || 2 || style="background-color: khaki;" | [[#CUD|'''B''']] || style="background-color: khaki;" | [[#CPR|'''R''']] || style="background-color: khaki;" | [[#REP|'''b''']] || r
 
|-
 
|-
 
! 3
 
! 3
| ETX || DC3 || #  || 3 || [[#CUF|'''C''']] || [[#SU|'''S''']] || [[#DA|'''c''']] || s
+
| ETX || DC3 || #  || 3 || style="background-color: khaki;" | [[#CUF|'''C''']] || style="background-color: khaki;" | [[#SU|'''S''']] || style="background-color: khaki;" | [[#DA|'''c''']] || s
 
|-
 
|-
 
! 4
 
! 4
| EOT || DC4 || $  || 4 || [[#CUB|'''D''']] || [[#SD|'''T''']] || [[#VPA|'''d''']] || t
+
| EOT || DC4 || $  || 4 || style="background-color: khaki;" | [[#CUB|'''D''']] || style="background-color: khaki;" | [[#SD|'''T''']] || style="background-color: khaki;" | [[#VPA|'''d''']] || t
 
|-
 
|-
 
! 5
 
! 5
| ENQ || NAQ || %  || 5 || [[#CNL|'''E''']] || [[#NP|'''U''']] || [[#VPR|'''e''']] || u
+
| ENQ || NAQ || %  || 5 || style="background-color: khaki;" | [[#CNL|'''E''']] || style="background-color: khaki;" | [[#NP|'''U''']] || style="background-color: khaki;" | [[#VPR|'''e''']] || u
 
|-
 
|-
 
! 6
 
! 6
| ACK || SYN || &  || 6 || [[#CPL|'''F''']] || [[#PP|'''V''']] || [[#HVP|'''f''']] || v
+
| ACK || SYN || &  || 6 || style="background-color: khaki;" | [[#CPL|'''F''']] || style="background-color: khaki;" | [[#PP|'''V''']] || style="background-color: khaki;" | [[#HVP|'''f''']] || v
 
|-
 
|-
 
! 7
 
! 7
| BEL || ETB || '  || 7 || [[#CHA|'''G''']] || [[#CTC|'''W''']] || [[#TBC|'''g''']] || w
+
| BEL || ETB || '  || 7 || style="background-color: khaki;" | [[#CHA|'''G''']] || style="background-color: khaki;" | [[#CTC|'''W''']] || style="background-color: khaki;" | [[#TBC|'''g''']] || w
 
|-
 
|-
 
! 8
 
! 8
| BS  || CAN || (  || 8 || [[#CUP|'''H''']] || [[#ECH|'''X''']] || [[#SM|'''h''']] || x
+
| BS  || CAN || (  || 8 || style="background-color: khaki;" | [[#CUP|'''H''']] || style="background-color: khaki;" | [[#ECH|'''X''']] || style="background-color: khaki;" | [[#SM|'''h''']] || x
 
|-
 
|-
 
! 9
 
! 9
| HT  || EM  || )  || 9 || [[#CHT|'''I''']] || [[#CVT|'''Y''']] || [[#MC|'''i''']] || y
+
| HT  || EM  || )  || 9 || style="background-color: khaki;" | [[#CHT|'''I''']] || style="background-color: khaki;" | [[#CVT|'''Y''']] || style="background-color: khaki;" | [[#MC|'''i''']] || y
 
|-
 
|-
 
! 10
 
! 10
| LF  || SUB || *  || : || [[#ED|'''J''']] || [[#CBT|'''Z''']] || [[#HPB|'''j''']] || z
+
| LF  || SUB || *  || : || style="background-color: khaki;" | [[#ED|'''J''']] || style="background-color: khaki;" | [[#CBT|'''Z''']] || style="background-color: khaki;" | [[#HPB|'''j''']] || z
 
|-
 
|-
 
! 11
 
! 11
| VT || ESC || + || ; || [[#EL|'''K''']] || [[#SRS|'''[''']] || [[#VPB|'''k''']] || {
+
| VT || ESC || + || ; || style="background-color: khaki;" | [[#EL|'''K''']] || style="background-color: khaki;" | [[#SRS|'''[''']] || style="background-color: khaki;" | [[#VPB|'''k''']] || {
 
|-
 
|-
 
! 12
 
! 12
| FF || IS4 || , || < || [[#IL|'''L''']] || [[#PTX|'''\''']] || [[#RM|'''l''']] || <nowiki>|</nowiki>
+
| FF || IS4 || , || < || style="background-color: khaki;" | [[#IL|'''L''']] || style="background-color: khaki;" | [[#PTX|'''\''']] || style="background-color: khaki;" | [[#RM|'''l''']] || <nowiki>|</nowiki>
 
|-
 
|-
 
! 13
 
! 13
| CR || IS3 || - || = || [[#DL|'''M''']] || [[#SDS|''']''']] || [[#SGR|'''m''']] || }
+
| CR || IS3 || - || = || style="background-color: khaki;" | [[#DL|'''M''']] || style="background-color: khaki;" | [[#SDS|''']''']] || style="background-color: khaki;" | [[#SGR|'''m''']] || }
 
|-
 
|-
 
! 14
 
! 14
| SO || IS2 || . || > || [[#EF|'''N''']] || [[#SIMD|'''^''']] || [[#DSR|'''n''']] || ~
+
| SO || IS2 || . || > || style="background-color: khaki;" | [[#EF|'''N''']] || style="background-color: khaki;" | [[#SIMD|'''^''']] || style="background-color: khaki;" | [[#DSR|'''n''']] || ~
 
|-
 
|-
 
! 15
 
! 15
| SI || IS1 || / || ? || [[#EA|'''O''']] || _ || [[#DAQ|'''o''']] || DEL
+
| SI || IS1 || / || ? || style="background-color: khaki;" | [[#EA|'''O''']] || _ || style="background-color: khaki;" | [[#DAQ|'''o''']] || DEL
 
|}
 
|}
  

Revision as of 22:09, 26 May 2012

Subpages of CSI

0 1 2 3 4 5 6 7
0 NUL DLE SP 0 @ P ` p
1 SOH DC1 ! 1 A Q a q
2 STX DC2 " 2 B R b r
3 ETX DC3 # 3 C S c s
4 EOT DC4 $ 4 D T d t
5 ENQ NAQ % 5 E U e u
6 ACK SYN & 6 F V f v
7 BEL ETB ' 7 G W g w
8 BS CAN ( 8 H X h x
9 HT EM ) 9 I Y i y
10 LF SUB * : J Z j z
11 VT ESC + ; K [ k {
12 FF IS4 , < L \ l |
13 CR IS3 - = M ] m }
14 SO IS2 . > N ^ n ~
15 SI IS1 / ? O _ o DEL


ESC CSI Sequences

Prefix Acronym Name Parameters
Z CBT Cursor Backward Tab Pn1=1
G CHA Cursor Horizontal Absolute Pn1=1
I CHT Cursor Horizontal Tab Pn1=1
E CNL Cursor Next Line Pn1=1
F CPL Cursor Previous Line Pn1=1
R CPR Cursor Position Report Pn1=1; Pn2=1
W CTC Cursor Tabulation Control Ps1=0; ...
D CUB Cursor Back Pn1=1
B CUD Cursor Down Pn1=1
C CUF Cursor Forward Pn1=1
H CUP Cursor Position Pn1=1; Pn2=1
A CUU Cursor Up Pn1=1
Y CVT Cursor Vertical Tab Pn1=1
c DA Device Attributes Ps1=0
o DAQ Define Area Qualifications Ps1=0; ...
P DCH Delete Character Pn1=1
M DL Delete Line Pn1=1
n DSR Device Status Report Ps1=0
O EA Erase Area Ps1=0
X ECH Erase Character Pn1=1
J ED Erase Display Ps1=0
N EF Erase Field Ps1=0
K EL Erase Line Ps1=0
` HPA Horizontal Position Absolute Pn1=1
j HPB Horizontal Position Backward Pn1=1
a HPR Horizontal Position Right Pn1=1
f HVP Horizontal Vertical Position Pn1=1; Pn2=2
@ ICH Insert Character Pn1=1
L IL Insert Line Pn1=1
i MC Media Copy Ps1=0
U NP Next Page Pn1=1
V PP Previous Page Pn1=1
\ PTX Parallel Texts Ps1=0
b REP Repeat Pn1=1
l RM Reset Mode Ps1; ...
T SD Scroll Down Pn1=1
] SDS Start Directed String Ps1=0
Q SEE Select Editing Extent Ps1=0
m SGR Select Graphic Rendition Ps1=0
^ SIMD Select Implicit Movement Direction Ps1=0
h SM Set Mode Ps1; ...
[ SRS Start Reversed String Ps1=0
S SU Scroll Up Pn1=1
g TBC Tabulation Clear Ps1=0
d VPA Vertical Position Absolute Pn1=1
k VPB Vertical Position Backward Pn1=1
e VPR Vertical Position Right Pn1=1


CTC Parameters

Value Description
0 Set horizontal tab stop
1 Set vertical tab stop
2 Clear horizontal tab stop
3 Clear vertical tab stop
4 Clear all horizontal tab stops on the current line
5 Clear all horizontal tab stops
6 Clear all tab stops


DAQ Parameters

Value Description
0 Unprotected and unguarded
1 Protected and guarded
2 Graphic character input
3 Numeric input
4 Alphabetic input
5 Right-justified input
6 Fill with zeros
7 Set a tab stop
8 Protected and unguarded
9 Fill with spaces
10 Left-justified input
11 Reverse order of character positions within field


DSR Parameters

Value Description
0 Ready, no malfunction detected
1 Busy, another DSR must be requested later
2 Busy, another DSR will be sent later
3 Some malfunction detected, another DSR must be requested later
4 Some malfunction detected, another DSR will be sent later
5 A DSR is requested
6 A cursor position report (CPR) is requested


EA Parameters

Value Description
0 Erase from cursor to end of area
1 Erase from start of area to cursor
2 Erase entire area


ED Parameters

Value Description
0 Erase from cursor to end of display
1 Erase from start of display to cursor
2 Erase entire display


EF Parameters

Value Description
0 Erase from cursor to end of field
1 Erase from start of field to cursor
2 Erase entire field


EL Parameters

Value Description
0 Erase from cursor to end of line
1 Erase from start of line to cursor
2 Erase entire line


MC Parameters

Value Description
0 Start transfer to primary auxiliary device
1 Start transfer from a primary auxiliary device
2 Start transfer to a secondary auxiliary device
3 Start transfer from a secondary auxiliary device
4 Stop relay to a primary auxiliary device
5 Start relay to a primary auxiliary device
6 Stop relay to a secondary auxiliary device
7 Start relay to a secondary auxiliary device