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

From Terminals
Jump to: navigation, search
m (remove sortable)
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[:Special:PrefixIndex/{{FULLPAGENAME}}/|Subpages of {{SUBPAGENAME}}]]
 
[[:Special:PrefixIndex/{{FULLPAGENAME}}/|Subpages of {{SUBPAGENAME}}]]
  
{| border="1" style="text-align: center;"
+
{|
! style="width: 3em;" |   !! style="width: 3em;" | 0 !! style="width: 3em;" | 1
+
| valign="top" align="right" |
! style="width: 3em;" | 2 !! style="width: 3em;" | 3 !! style="width: 3em;" | 4
+
{{CodeChart
! style="width: 3em;" | 5 !! style="width: 3em;" | 6 !! style="width: 3em;" | 7
+
| title=Received
 +
| at=#ICH
 +
| a=#CUU
 +
| b=#CUD
 +
| c=#CUF
 +
| d=#CUB
 +
| e=#CNL
 +
| f=#CPL
 +
| g=#CHA
 +
| h=#CUP
 +
| i=#CHT
 +
| j=#ED
 +
| k=#EL
 +
| l=#IL
 +
| m=#DL
 +
| n=#EF
 +
| o=#EA
 +
| p=#DCH
 +
| q=#SEE
 +
| r=#DSR
 +
| s=#SU
 +
| t=#SD
 +
| u=#NP
 +
| v=#PP
 +
| w=#CTC
 +
| x=#ECH
 +
| y=#CVT
 +
| z=#CBT
 +
 
 +
| lowera=#HPR
 +
| lowerb=#REP
 +
| lowerc=#DA
 +
| lowerd=#VPA
 +
| lowere=#VPR
 +
| lowerf=#HVP
 +
| lowerg=#TBC
 +
| lowerh=#SM
 +
| loweri=#MC
 +
| lowerj=#HPB
 +
| lowerk=#VPB
 +
| lowerl=#RM
 +
| lowerm=#SGR
 +
| lowern=#DSR
 +
| lowero=#DAQ
 +
 
 +
| sp=/SP
 +
| at=#ICH
 +
| backquote=#HPA
 +
| openbracket=#SRS
 +
| backslash=#PTX
 +
| closebracket=#SDS
 +
| caret=#SIMD
 +
}}
 +
| style="width: 2ex;" |
 +
| valign="top" |
 +
{{CodeChart
 +
| title=Transmitted
 +
| r=#CPR
 +
| lowerc=#DA-response
 +
| lowern=#DSR-response
 +
}}
 
|-
 
|-
! 0
+
| valign="top" |
| NUL || DLE || [[:User:Legalize/Control Sequences/ESC/CSI/SP|'''SP''']] || 0 || [[#ICH|'''@''']] || [[#DCH|'''P''']] || [[#HPA|'''`''']] || p
+
{| class="wikitable"
|-
+
|+ ESC CSI Sequences
! 1
+
{{CodeDescriptionHeaderA}}
| SOH || DC1 || || 1 || [[#CUU|'''A''']] || [[#SEE|'''Q''']] || [[#HPR|'''a''']] || q
+
{{CodeDescriptionRowA|@|ICH|ICH|Insert Character|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|A|CUU|CUU|Cursor Up|''Pn1''<nowiki>=</nowiki>1}}
! 2
+
{{CodeDescriptionRowA|B|CUD|CUD|Cursor Down|''Pn1''<nowiki>=</nowiki>1}}
| STX || DC2 || || 2 || [[#CUD|'''B''']] || [[#CPR|'''R''']] || [[#REP|'''b''']] || r
+
{{CodeDescriptionRowA|C|CUF|CUF|Cursor Forward|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|D|CUB|CUB|Cursor Back|''Pn1''<nowiki>=</nowiki>1}}
! 3
+
{{CodeDescriptionRowA|E|CNL|CNL|Cursor Next Line|''Pn1''<nowiki>=</nowiki>1}}
| ETX || DC3 || || 3 || [[#CUF|'''C''']] || [[#SU|'''S''']] || [[#DA|'''c''']] || s
+
{{CodeDescriptionRowA|F|CPL|CPL|Cursor Previous Line|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|G|CHA|CHA|Cursor Horizontal Absolute|''Pn1''<nowiki>=</nowiki>1}}
! 4
+
{{CodeDescriptionRowA|H|CUP|CUP|Cursor Position|''line''<nowiki>=</nowiki>1 <code>;</code> ''col''<nowiki>=</nowiki>1}}
| EOT || DC4 || || 4 || [[#CUB|'''D''']] || [[#SD|'''T''']] || [[#VPA|'''d''']] || t
+
{{CodeDescriptionRowA|I|CHT|CHT|Cursor Horizontal Tab|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|J|ED|ED|Erase Display|[[#ed-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
! 5
+
{{CodeDescriptionRowA|K|EL|EL|Erase Line|[[#el-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
| ENQ || NAQ || || 5 || [[#CNL|'''E''']] || [[#NP|'''U''']] || [[#VPR|'''e''']] || u
+
{{CodeDescriptionRowA|L|IL|IL|Insert Line|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|M|DL|DL|Delete Line|''Pn1''<nowiki>=</nowiki>1}}
! 6
+
{{CodeDescriptionRowA|N|EF|EF|Erase Field|[[#ef-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
| ACK || SYN || || 6 || [[#CPL|'''F''']] || [[#PP|'''V''']] || [[#HVP|'''f''']] || v
+
{{CodeDescriptionRowA|O|EA|EA|Erase Area|[[#ea-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|P|DCH|DCH|Delete Character|''Pn1''<nowiki>=</nowiki>1}}
! 7
+
{{CodeDescriptionRowA|Q|SEE|SEE|Select Editing Extent|''Ps1''<nowiki>=</nowiki>0}}
| BEL || ETB || ' || 7 || [[#CHA|'''G''']] || [[#CTC|'''W''']] || [[#TBC|'''g''']] || w
+
{{CodeDescriptionRowA|S|SU|SU|Scroll Up|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|T|SD|SD|Scroll Down|''Pn1''<nowiki>=</nowiki>1}}
! 8
+
{{CodeDescriptionRowA|U|NP|NP|Next Page|''Pn1''<nowiki>=</nowiki>1}}
| BS  || CAN || || 8 || [[#CUP|'''H''']] || [[#ECH|'''X''']] || [[#SM|'''h''']] || x
+
{{CodeDescriptionRowA|V|PP|PP|Previous Page|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|W|CTC|CTC|Cursor Tabulation Control|[[#ctc-parameters|''Ps1'']]<nowiki>=</nowiki>0 <code>;</code> ...}}
! 9
+
{{CodeDescriptionRowA|X|ECH|ECH|Erase Character|''Pn1''<nowiki>=</nowiki>1}}
| HT  || EM  || || 9 || [[#CHT|'''I''']] || [[#CVT|'''Y''']] || [[#MC|'''i''']] || y
+
{{CodeDescriptionRowA|Y|CVT|CVT|Cursor Vertical Tab|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|Z|CBT|CBT|Cursor Backward Tab|''Pn1''<nowiki>=</nowiki>1}}
! 10
+
{{CodeDescriptionRowA|`|HPA|HPA|Horizontal Position Absolute|''Pn1''<nowiki>=</nowiki>1}}
| LF  || SUB || || : || [[#ED|'''J''']] || [[#CBT|'''Z''']] || [[#HPB|'''j''']] || z
+
{{CodeDescriptionRowA|a|HPR|HPR|Horizontal Position Right|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|b|REP|REP|Repeat|''Pn1''<nowiki>=</nowiki>1}}
! 11
+
{{CodeDescriptionRowA|c|DA|DA|Device Attributes|<code>0</code>}}
| VT || ESC || + || ; || [[#EL|'''K''']] || [[#SRS|'''[''']] || [[#VPB|'''k''']] || {
+
{{CodeDescriptionRowA|d|VPA|VPA|Vertical Position Absolute|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|e|VPR|VPR|Vertical Position Right|''Pn1''<nowiki>=</nowiki>1}}
! 12
+
{{CodeDescriptionRowA|f|HVP|HVP|Horizontal Vertical Position|''Pn1''<nowiki>=</nowiki>1 <code>;</code> ''Pn2''<nowiki>=</nowiki>2}}
| FF || IS4 || , || < || [[#IL|'''L''']] || [[#PTX|'''\''']] || [[#RM|'''l''']] || |
+
{{CodeDescriptionRowA|g|TBC|TBC|Tabulation Clear|''Ps1''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|h|SM|SM|Set Mode|''Ps1'' <code>;</code> ...}}
! 13
+
{{CodeDescriptionRowA|i|MC|MC|Media Copy|[[#mc-parameter|''Ps1'']]<nowiki>=</nowiki>0}}
| CR || IS3 || - || = || [[#DL|'''M''']] || [[#SDS|''']''']] || [[#SGR|'''m''']] || }
+
{{CodeDescriptionRowA|j|HPB|HPB|Horizontal Position Backward|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|k|VPB|VPB|Vertical Position Backward|''Pn1''<nowiki>=</nowiki>1}}
! 14
+
{{CodeDescriptionRowA|l|RM|RM|Reset Mode|''Ps1'' <code>;</code> ...}}
| SO || IS2 || . || > || [[#EF|'''N''']] || [[#SIMD|'''^''']] || [[#DSR|'''n''']] || ~
+
{{CodeDescriptionRowA|m|SGR|SGR|Select Graphic Rendition|''Ps1''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|n|DSR|DSR|Device Status Report|[[#dsr-request-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
! 15
+
{{CodeDescriptionRowA|o|DAQ|DAQ|Define Area Qualifications|[[#daq-parameters|''Ps1'']]<nowiki>=</nowiki>0 <code>;</code> ...}}
| SI || IS1 || / || ? || [[#EA|'''O''']] || _ || [[#DAQ|'''o''']] || DEL
+
{{CodeDescriptionRowA|[|SRS|SRS|Start Reversed String|''Ps1''<nowiki>=</nowiki>0}}
 +
{{CodeDescriptionRowA|\|PTX|PTX|Parallel Texts|''Ps1''<nowiki>=</nowiki>0}}
 +
{{CodeDescriptionRowA|]|SDS|SDS|Start Directed String|''Ps1''<nowiki>=</nowiki>0}}
 +
{{CodeDescriptionRowA|^|SIMD|SIMD|Select Implicit Movement Direction|''Ps1''<nowiki>=</nowiki>0}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="ctc-parameters" | CTC Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Set horizontal tab stop}}
 +
{{ValueDescriptionRow|1|Set vertical tab stop}}
 +
{{ValueDescriptionRow|2|Clear horizontal tab stop}}
 +
{{ValueDescriptionRow|3|Clear vertical tab stop}}
 +
{{ValueDescriptionRow|4|Clear all horizontal tab stops on the current line}}
 +
{{ValueDescriptionRow|5|Clear all horizontal tab stops}}
 +
{{ValueDescriptionRow|6|Clear all tab stops}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="daq-parameters" | DAQ Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Unprotected and unguarded}}
 +
{{ValueDescriptionRow|1|Protected and guarded}}
 +
{{ValueDescriptionRow|2|Graphic character input}}
 +
{{ValueDescriptionRow|3|Numeric input}}
 +
{{ValueDescriptionRow|4|Alphabetic input}}
 +
{{ValueDescriptionRow|5|Right-justified input}}
 +
{{ValueDescriptionRow|6|Fill with zeros}}
 +
{{ValueDescriptionRow|7|Set a tab stop}}
 +
{{ValueDescriptionRow|8|Protected and unguarded}}
 +
{{ValueDescriptionRow|9|Fill with spaces}}
 +
{{ValueDescriptionRow|10|Left-justified input}}
 +
{{ValueDescriptionRow|11|Reverse order of character positions within field}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="dsr-response-parameters" | DSR Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|5|A DSR is requested}}
 +
{{ValueDescriptionRow|6|A cursor position report (CPR) is requested}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="ea-parameters" | EA Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Erase from cursor to end of area}}
 +
{{ValueDescriptionRow|1|Erase from start of area to cursor}}
 +
{{ValueDescriptionRow|2|Erase entire area}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="ed-parameters" | ED Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Erase from cursor to end of display}}
 +
{{ValueDescriptionRow|1|Erase from start of display to cursor}}
 +
{{ValueDescriptionRow|2|Erase entire display}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="ef-parameters" | EF Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Erase from cursor to end of field}}
 +
{{ValueDescriptionRow|1|Erase from start of field to cursor}}
 +
{{ValueDescriptionRow|2|Erase entire field}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="el-parameters" | EL Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Erase from cursor to end of line}}
 +
{{ValueDescriptionRow|1|Erase from start of line to cursor}}
 +
{{ValueDescriptionRow|2|Erase entire line}}
 
|}
 
|}
  
 +
{| class="wikitable"
 +
|+ id="mc-parameter" | MC Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Start transfer to primary auxiliary device}}
 +
{{ValueDescriptionRow|1|Start transfer from a primary auxiliary device}}
 +
{{ValueDescriptionRow|2|Start transfer to a secondary auxiliary device}}
 +
{{ValueDescriptionRow|3|Start transfer from a secondary auxiliary device}}
 +
{{ValueDescriptionRow|4|Stop relay to a primary auxiliary device}}
 +
{{ValueDescriptionRow|5|Start relay to a primary auxiliary device}}
 +
{{ValueDescriptionRow|6|Stop relay to a secondary auxiliary device}}
 +
{{ValueDescriptionRow|7|Start relay to a secondary auxiliary device}}
 +
|}
 +
|
 +
| valign="top" |
 +
{| class="wikitable"
 +
|+ ESC CSI Sequences
 +
{{CodeDescriptionHeaderA}}
 +
{{CodeDescriptionRowA|R|CPR|CPR|Cursor Position Report|''line'' <code>;</code> ''col''}}
 +
{{CodeDescriptionRowA|c|DA-response|DA|Device Attributes|''Ps1''}}
 +
{{CodeDescriptionRowA|n|DSR-response|DSR|Device Status Report|[[#dsr-response-parameters|''Ps1'']]<nowiki>=</nowiki>0}}
 +
|}
  
== ESC CSI Sequences ==
+
{| class="wikitable"
 +
|+ id="dsr-response-parameters" | DSR Parameters
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Ready, no malfunction detected}}
 +
{{ValueDescriptionRow|1|Busy, another DSR must be requested later}}
 +
{{ValueDescriptionRow|2|Busy, another DSR will be sent later}}
 +
{{ValueDescriptionRow|3|Some malfunction detected, another DSR must be requested later}}
 +
{{ValueDescriptionRow|4|Some malfunction detected, another DSR will be sent later}}
 +
|}
  
{| style="text-align: center;" border="1"
 
! style="padding: 1ex;" | Prefix
 
! style="padding: 1ex;" | Acronym
 
! style="padding: 1ex;" | Name
 
! style="padding: 1ex;" | Parameters
 
|-
 
! style="padding: 1ex;" | Z
 
| style="padding: 1ex;" | <span id="CBT">CBT</span>
 
| style="padding: 1ex;" | Cursor Backward Tab
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | G
 
| style="padding: 1ex;" | <span id="CHA">CHA</span>
 
| style="padding: 1ex;" | Cursor Horizontal Absolute
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | I
 
| style="padding: 1ex;" | <span id="CHT">CHT</span>
 
| style="padding: 1ex;" | Cursor Horizontal Tab
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | E
 
| style="padding: 1ex;" | <span id="CNL">CNL</span>
 
| style="padding: 1ex;" | Cursor Next Line
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | F
 
| style="padding: 1ex;" | <span id="CPL">CPL</span>
 
| style="padding: 1ex;" | Cursor Previous Line
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | R
 
| style="padding: 1ex;" | <span id="CPR">CPR</span>
 
| style="padding: 1ex;" | Cursor Position Report
 
| style="padding: 1ex;" | ''Pn1''=1; ''Pn2''=1
 
|-
 
! style="padding: 1ex;" | W
 
| style="padding: 1ex;" | <span id="CTC">CTC</span>
 
| style="padding: 1ex;" | Cursor Tabulation Control
 
| style="padding: 1ex;" | ''Ps1''=0; ...
 
|-
 
! style="padding: 1ex;" | D
 
| style="padding: 1ex;" | <span id="CUB">CUB</span>
 
| style="padding: 1ex;" | Cursor Back
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | B
 
| style="padding: 1ex;" | <span id="CUD">CUD</span>
 
| style="padding: 1ex;" | Cursor Down
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | C
 
| style="padding: 1ex;" | <span id="CUF">CUF</span>
 
| style="padding: 1ex;" | Cursor Forward
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | H
 
| style="padding: 1ex;" | <span id="CUP">CUP</span>
 
| style="padding: 1ex;" | Cursor Position
 
| style="padding: 1ex;" | ''Pn1''=1; ''Pn2''=1
 
|-
 
! style="padding: 1ex;" | A
 
| style="padding: 1ex;" | <span id="CUU">CUU</span>
 
| style="padding: 1ex;" | Cursor Up
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | Y
 
| style="padding: 1ex;" | <span id="CVT">CVT</span>
 
| style="padding: 1ex;" | Cursor Vertical Tab
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | c
 
| style="padding: 1ex;" | <span id="DA">DA</span>
 
| style="padding: 1ex;" | Device Attributes
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | o
 
| style="padding: 1ex;" | <span id="DAQ">DAQ</span>
 
| style="padding: 1ex;" | Define Area Qualifications
 
| style="padding: 1ex;" | ''Ps1''=0; ...
 
|-
 
! style="padding: 1ex;" | P
 
| style="padding: 1ex;" | <span id="DCH">DCH</span>
 
| style="padding: 1ex;" | Delete Character
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | M
 
| style="padding: 1ex;" | <span id="DL">DL</span>
 
| style="padding: 1ex;" | Delete Line
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | n
 
| style="padding: 1ex;" | <span id="DSR">DSR</span>
 
| style="padding: 1ex;" | Device Status Report
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | O
 
| style="padding: 1ex;" | <span id="EA">EA</span>
 
| style="padding: 1ex;" | Erase Area
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | X
 
| style="padding: 1ex;" | <span id="ECH">ECH</span>
 
| style="padding: 1ex;" | Erase Character
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | J
 
| style="padding: 1ex;" | <span id="ED">ED</span>
 
| style="padding: 1ex;" | Erase Display
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | N
 
| style="padding: 1ex;" | <span id="EF">EF</span>
 
| style="padding: 1ex;" | Erase Field
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | K
 
| style="padding: 1ex;" | <span id="EL">EL</span>
 
| style="padding: 1ex;" | Erase Line
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | `
 
| style="padding: 1ex;" | <span id="HPA">HPA</span>
 
| style="padding: 1ex;" | Horizontal Position Absolute
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | j
 
| style="padding: 1ex;" | <span id="HPB">HPB</span>
 
| style="padding: 1ex;" | Horizontal Position Backward
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | a
 
| style="padding: 1ex;" | <span id="HPR">HPR</span>
 
| style="padding: 1ex;" | Horizontal Position Right
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | f
 
| style="padding: 1ex;" | <span id="HVP">HVP</span>
 
| style="padding: 1ex;" | Horizontal Vertical Position
 
| style="padding: 1ex;" | ''Pn1''=1; ''Pn2''=2
 
|-
 
! style="padding: 1ex;" | @
 
| style="padding: 1ex;" | <span id="ICH">ICH</span>
 
| style="padding: 1ex;" | Insert Character
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | L
 
| style="padding: 1ex;" | <span id="IL">IL</span>
 
| style="padding: 1ex;" | Insert Line
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | i
 
| style="padding: 1ex;" | <span id="MC">MC</span>
 
| style="padding: 1ex;" | Media Copy
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | U
 
| style="padding: 1ex;" | <span id="NP">NP</span>
 
| style="padding: 1ex;" | Next Page
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | V
 
| style="padding: 1ex;" | <span id="PP">PP</span>
 
| style="padding: 1ex;" | Previous Page
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | \
 
| style="padding: 1ex;" | <span id="PTX">PTX</span>
 
| style="padding: 1ex;" | Parallel Texts
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | b
 
| style="padding: 1ex;" | <span id="REP">REP</span>
 
| style="padding: 1ex;" | Repeat
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | l
 
| style="padding: 1ex;" | <span id="RM">RM</span>
 
| style="padding: 1ex;" | Reset Mode
 
| style="padding: 1ex;" | ''Ps1''; ...
 
|-
 
! style="padding: 1ex;" | T
 
| style="padding: 1ex;" | <span id="SD">SD</span>
 
| style="padding: 1ex;" | Scroll Down
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | ]
 
| style="padding: 1ex;" | <span id="SDS">SDS</span>
 
| style="padding: 1ex;" | Start Directed String
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | Q
 
| style="padding: 1ex;" | <span id="SEE">SEE</span>
 
| style="padding: 1ex;" | Select Editing Extent
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | m
 
| style="padding: 1ex;" | <span id="SGR">SGR</span>
 
| style="padding: 1ex;" | Select Graphic Rendition
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | ^
 
| style="padding: 1ex;" | <span id="SIMD">SIMD</span>
 
| style="padding: 1ex;" | Select Implicit Movement Direction
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | h
 
| style="padding: 1ex;" | <span id="SM">SM</span>
 
| style="padding: 1ex;" | Set Mode
 
| style="padding: 1ex;" | ''Ps1''; ...
 
|-
 
! style="padding: 1ex;" | [
 
| style="padding: 1ex;" | <span id="SRS">SRS</span>
 
| style="padding: 1ex;" | Start Reversed String
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | S
 
| style="padding: 1ex;" | <span id="SU">SU</span>
 
| style="padding: 1ex;" | Scroll Up
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | g
 
| style="padding: 1ex;" | <span id="TBC">TBC</span>
 
| style="padding: 1ex;" | Tabulation Clear
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | d
 
| style="padding: 1ex;" | <span id="VPA">VPA</span>
 
| style="padding: 1ex;" | Vertical Position Absolute
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | k
 
| style="padding: 1ex;" | <span id="VPB">VPB</span>
 
| style="padding: 1ex;" | Vertical Position Backward
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | e
 
| style="padding: 1ex;" | <span id="VPR">VPR</span>
 
| style="padding: 1ex;" | Vertical Position Right
 
| style="padding: 1ex;" | ''Pn1''=1
 
 
|}
 
|}

Latest revision as of 03:21, 17 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 line=1 ; col=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 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 line ; col
c DA Device Attributes Ps1
n DSR Device Status Report Ps1=0
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