Difference between revisions of "CodeChart:ANSI/ESC/CSI"
< CodeChart:ANSI | ESC
m (sortable) |
m (switch to row template, fix HPR code) |
||
| Line 29: | Line 29: | ||
| z=#CBT | | z=#CBT | ||
| − | | | + | | lowera=#HPR |
| lowerb=#REP | | lowerb=#REP | ||
| lowerc=#DA | | lowerc=#DA | ||
| Line 57: | Line 57: | ||
== ESC CSI Sequences == | == ESC CSI Sequences == | ||
| − | {| | + | {| border="1" class="wikitable sortable" |
| − | ! style="padding: 1ex;" | Prefix | + | ! style="padding: 1ex; text-align: center;" | Prefix |
| − | ! style="padding: 1ex;" | Acronym | + | ! style="padding: 1ex; text-align: center;" | Acronym |
| − | ! style="padding: 1ex;" | | + | ! style="padding: 1ex;" | Description |
! style="padding: 1ex;" | Parameters | ! style="padding: 1ex;" | Parameters | ||
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Insert Character|''Pn1''<nowiki>=</nowiki>1|ICH|@|ICH}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Up|''Pn1''<nowiki>=</nowiki>1|CUU|A|CUU}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Down|''Pn1''<nowiki>=</nowiki>1|CUD|B|CUD}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Forward|''Pn1''<nowiki>=</nowiki>1|CUF|C|CUF}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Back|''Pn1''<nowiki>=</nowiki>1|CUB|D|CUB}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Next Line|''Pn1''<nowiki>=</nowiki>1|CNL|E|CNL}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Previous Line|''Pn1''<nowiki>=</nowiki>1|CPL|F|CPL}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Horizontal Absolute|''Pn1''<nowiki>=</nowiki>1|CHA|G|CHA}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Position|''Pn1''<nowiki>=</nowiki>1; ''Pn2''<nowiki>=</nowiki>1|CUP|H|CUP}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Horizontal Tab|''Pn1''<nowiki>=</nowiki>1|CHT|I|CHT}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Erase Display|[[#ed-parameters|''Ps1''<nowiki>=</nowiki>0]]|ED|J|ED}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Erase Line|[[#el-parameters|''Ps1''<nowiki>=</nowiki>0]]|EL|K|EL}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Insert Line|''Pn1''<nowiki>=</nowiki>1|IL|L|IL}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Delete Line|''Pn1''<nowiki>=</nowiki>1|DL|M|DL}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Erase Field|[[#ef-parameters|''Ps1''<nowiki>=</nowiki>0]]|EF|N|EF}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Erase Area|[[#ea-parameters|''Ps1''<nowiki>=</nowiki>0]]|EA|O|EA}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Delete Character|''Pn1''<nowiki>=</nowiki>1|DCH|P|DCH}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Select Editing Extent|''Ps1''<nowiki>=</nowiki>0|SEE|Q|SEE}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Position Report|''Pn1''<nowiki>=</nowiki>1; ''Pn2''<nowiki>=</nowiki>1|CPR|R|CPR}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Scroll Up|''Pn1''<nowiki>=</nowiki>1|SU|S|SU}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Scroll Down|''Pn1''<nowiki>=</nowiki>1|SD|T|SD}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Next Page|''Pn1''<nowiki>=</nowiki>1|NP|U|NP}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Previous Page|''Pn1''<nowiki>=</nowiki>1|PP|V|PP}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Tabulation Control|[[#ctc-parameters|''Ps1''<nowiki>=</nowiki>0;]] ...|CTC|W|CTC}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Erase Character|''Pn1''<nowiki>=</nowiki>1|ECH|X|ECH}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Vertical Tab|''Pn1''<nowiki>=</nowiki>1|CVT|Y|CVT}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Cursor Backward Tab|''Pn1''<nowiki>=</nowiki>1|CBT|Z|CBT}} | |
| − | | | + | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Horizontal Position Absolute|''Pn1''<nowiki>=</nowiki>1|HPA|`|HPA}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Horizontal Position Right|''Pn1''<nowiki>=</nowiki>1|HPR|a|HPR}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Repeat|''Pn1''<nowiki>=</nowiki>1|REP|b|REP}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Device Attributes|''Ps1''<nowiki>=</nowiki>0|DA|c|DA}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Vertical Position Absolute|''Pn1''<nowiki>=</nowiki>1|VPA|d|VPA}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Vertical Position Right|''Pn1''<nowiki>=</nowiki>1|VPR|e|VPR}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Horizontal Vertical Position|''Pn1''<nowiki>=</nowiki>1; ''Pn2''<nowiki>=</nowiki>2|HVP|f|HVP}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Tabulation Clear|''Ps1''<nowiki>=</nowiki>0|TBC|g|TBC}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Set Mode|''Ps1''; ...|SM|h|SM}} | |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Media Copy|[[#mc-parameter|''Ps1''<nowiki>=</nowiki>0]]|MC|i|MC}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Horizontal Position Backward|''Pn1''<nowiki>=</nowiki>1|HPB|j|HPB}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Vertical Position Backward|''Pn1''<nowiki>=</nowiki>1|VPB|k|VPB}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Reset Mode|''Ps1''; ...|RM|l|RM}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Select Graphic Rendition|''Ps1''<nowiki>=</nowiki>0|SGR|m|SGR}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Device Status Report|[[#dsr-parameters|''Ps1''<nowiki>=</nowiki>0]]|DSR|n|DSR}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Define Area Qualifications|[[#daq-parameters|''Ps1''<nowiki>=</nowiki>0;]] ...|DAQ|o|DAQ}} |
| − | | | + | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Start Reversed String|''Ps1''<nowiki>=</nowiki>0|SRS|[|SRS}} |
| − | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Parallel Texts|''Ps1''<nowiki>=</nowiki>0|PTX|\|PTX}} | |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Start Directed String|''Ps1''<nowiki>=</nowiki>0|SDS|]|SDS}} |
| − | | | + | {{User:Legalize/Control Sequences/CodeDescriptionTable/Row|Select Implicit Movement Direction|''Ps1''<nowiki>=</nowiki>0|SIMD|^|SIMD}} |
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
|} | |} | ||
Revision as of 10:09, 21 January 2013
| 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 |
Contents
ESC CSI Sequences
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 |