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

From Terminals
Jump to: navigation, search
m (switch to final templates)
m (switch to new templates)
Line 120: Line 120:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="ctc-parameters" | CTC Parameters
 
|+ id="ctc-parameters" | CTC Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
+
{{ValueDescriptionRow|0|Set horizontal tab stop}}
|-
+
{{ValueDescriptionRow|1|Set vertical tab stop}}
| style="padding: 1ex; text-align: center;" | 0
+
{{ValueDescriptionRow|2|Clear horizontal tab stop}}
| style="padding: 1ex;" | Set horizontal tab stop
+
{{ValueDescriptionRow|3|Clear vertical tab stop}}
|-
+
{{ValueDescriptionRow|4|Clear all horizontal tab stops on the current line}}
| style="padding: 1ex; text-align: center;" | 1
+
{{ValueDescriptionRow|5|Clear all horizontal tab stops}}
| style="padding: 1ex;" | Set vertical tab stop
+
{{ValueDescriptionRow|6|Clear all tab stops}}
|-
 
| style="padding: 1ex; text-align: center;" | 2
 
| style="padding: 1ex;" | Clear horizontal tab stop
 
|-
 
| style="padding: 1ex; text-align: center;" | 3
 
| style="padding: 1ex;" | Clear vertical tab stop
 
|-
 
| style="padding: 1ex; text-align: center;" | 4
 
| style="padding: 1ex;" | Clear all horizontal tab stops on the current line
 
|-
 
| style="padding: 1ex; text-align: center;" | 5
 
| style="padding: 1ex;" | Clear all horizontal tab stops
 
|-
 
| style="padding: 1ex; text-align: center;" | 6
 
| style="padding: 1ex;" | Clear all tab stops
 
 
|}
 
|}
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="daq-parameters" | DAQ Parameters
 
|+ id="daq-parameters" | DAQ Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
+
{{ValueDescriptionRow|0|Unprotected and unguarded}}
|-
+
{{ValueDescriptionRow|1|Protected and guarded}}
| style="padding: 1ex; text-align: center;" | 0
+
{{ValueDescriptionRow|2|Graphic character input}}
| style="padding: 1ex;" | Unprotected and unguarded
+
{{ValueDescriptionRow|3|Numeric input}}
|-
+
{{ValueDescriptionRow|4|Alphabetic input}}
| style="padding: 1ex; text-align: center;" | 1
+
{{ValueDescriptionRow|5|Right-justified input}}
| style="padding: 1ex;" | Protected and guarded
+
{{ValueDescriptionRow|6|Fill with zeros}}
|-
+
{{ValueDescriptionRow|7|Set a tab stop}}
| style="padding: 1ex; text-align: center;" | 2
+
{{ValueDescriptionRow|8|Protected and unguarded}}
| style="padding: 1ex;" | Graphic character input
+
{{ValueDescriptionRow|9|Fill with spaces}}
|-
+
{{ValueDescriptionRow|10|Left-justified input}}
| style="padding: 1ex; text-align: center;" | 3
+
{{ValueDescriptionRow|11|Reverse order of character positions within field}}
| style="padding: 1ex;" | Numeric input
 
|-
 
| style="padding: 1ex; text-align: center;" | 4
 
| style="padding: 1ex;" | Alphabetic input
 
|-
 
| style="padding: 1ex; text-align: center;" | 5
 
| style="padding: 1ex;" | Right-justified input
 
|-
 
| style="padding: 1ex; text-align: center;" | 6
 
| style="padding: 1ex;" | Fill with zeros
 
|-
 
| style="padding: 1ex; text-align: center;" | 7
 
| style="padding: 1ex;" | Set a tab stop
 
|-
 
| style="padding: 1ex; text-align: center;" | 8
 
| style="padding: 1ex;" | Protected and unguarded
 
|-
 
| style="padding: 1ex; text-align: center;" | 9
 
| style="padding: 1ex;" | Fill with spaces
 
|-
 
| style="padding: 1ex; text-align: center;" | 10
 
| style="padding: 1ex;" | Left-justified input
 
|-
 
| style="padding: 1ex; text-align: center;" | 11
 
| style="padding: 1ex;" | Reverse order of character positions within field
 
 
|}
 
|}
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="dsr-response-parameters" | DSR Request Parameters
 
|+ id="dsr-response-parameters" | DSR Request Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
+
{{ValueDescriptionRow|5|A DSR is requested}}
|-
+
{{ValueDescriptionRow|6|A cursor position report (CPR) is requested}}
| style="padding: 1ex; text-align: center;" | 5
 
| style="padding: 1ex;" | A DSR is requested
 
|-
 
| style="padding: 1ex; text-align: center;" | 6
 
| style="padding: 1ex;" | A cursor position report (CPR) is requested
 
 
|}
 
|}
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="ea-parameters" | EA Parameters
 
|+ id="ea-parameters" | EA Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
+
{{ValueDescriptionRow|0|Erase from cursor to end of area}}
|-
+
{{ValueDescriptionRow|1|Erase from start of area to cursor}}
| style="padding: 1ex; text-align: center;" | 0
+
{{ValueDescriptionRow|2|Erase entire area}}
| style="padding: 1ex;" | Erase from cursor to end of area
 
|-
 
| style="padding: 1ex; text-align: center;" | 1
 
| style="padding: 1ex;" | Erase from start of area to cursor
 
|-
 
| style="padding: 1ex; text-align: center;" | 2
 
| style="padding: 1ex;" | Erase entire area
 
 
|}
 
|}
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="ed-parameters" | ED Parameters
 
|+ id="ed-parameters" | ED Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
 
 
|-
 
|-
 
| style="padding: 1ex; text-align: center;" | 0
 
| style="padding: 1ex; text-align: center;" | 0
Line 231: Line 178:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="ef-parameters" | EF Parameters
 
|+ id="ef-parameters" | EF Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
 
 
|-
 
|-
 
| style="padding: 1ex; text-align: center;" | 0
 
| style="padding: 1ex; text-align: center;" | 0
Line 246: Line 192:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="el-parameters" | EL Parameters
 
|+ id="el-parameters" | EL Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
 
 
|-
 
|-
 
| style="padding: 1ex; text-align: center;" | 0
 
| style="padding: 1ex; text-align: center;" | 0
Line 261: Line 206:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="mc-parameter" | MC Parameters
 
|+ id="mc-parameter" | MC Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
 
 
|-
 
|-
 
| style="padding: 1ex; text-align: center;" | 0
 
| style="padding: 1ex; text-align: center;" | 0
Line 300: Line 244:
 
{| class="wikitable"
 
{| class="wikitable"
 
|+ id="dsr-response-parameters" | DSR Response Parameters
 
|+ id="dsr-response-parameters" | DSR Response Parameters
! style="padding: 1ex;" | Value
+
{{ValueDescriptionHeader}}
! style="padding: 1ex;" | Description
 
 
|-
 
|-
 
| style="padding: 1ex; text-align: center;" | 0
 
| style="padding: 1ex; text-align: center;" | 0

Revision as of 06:45, 14 February 2013

Subpages of CSI

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