Difference between revisions of "CodeChart:ANSI/ESC"

From Terminals
Jump to: navigation, search
m (sortable)
m (moved User:Legalize/Control Sequences/ANSI/ESC to CodeChart:ANSI/ESC: Promote to real CodeChart)
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[:Special:PrefixIndex/{{FULLPAGENAME}}/|Subpages of {{SUBPAGENAME}}]]
 
[[:Special:PrefixIndex/{{FULLPAGENAME}}/|Subpages of {{SUBPAGENAME}}]]
  
 +
{|
 +
| valign="top" align="right" |
 
{{CodeChart
 
{{CodeChart
 +
| title=Received
 
| b=#BPH
 
| b=#BPH
 
| c=#NBH
 
| c=#NBH
 +
| d=#IND
 
| e=#NEL
 
| e=#NEL
 
| f=#SSA
 
| f=#SSA
Line 41: Line 45:
 
| underscore=#APC
 
| underscore=#APC
 
}}
 
}}
 +
| style="width: 2ex;" |
 +
| valign="top" |
 +
{{CodeChart
 +
| title=Transmitted
 +
| openbracket=/CSI
 +
}}
 +
|-
 +
| valign="top" |
 +
{| class="wikitable sortable"
 +
|+ ESC Sequences
 +
{{CodeDescriptionHeaderA}}
 +
{{CodeDescriptionRowA|B|BPH|BPH|Break Permitted Here}}
 +
{{CodeDescriptionRowA|C|NBH|NBH|No Break Here}}
 +
{{CodeDescriptionRowA|D|IND|IND|Index †}}
 +
{{CodeDescriptionRowA|E|NEL|NEL|Next Line}}
 +
{{CodeDescriptionRowA|F|SSA|SSA|Start of Selected Area}}
 +
{{CodeDescriptionRowA|G|ESA|ESA|End of Selected Area}}
 +
{{CodeDescriptionRowA|H|HTS|HTS|Horizontal Tab Set}}
 +
{{CodeDescriptionRowA|I|HTJ|HTJ|Horizontal Tab with Justification}}
 +
{{CodeDescriptionRowA|J|VTS|VTS|Vertical Tab Set}}
 +
{{CodeDescriptionRowA|K|PLD|PLD|Partial Line Down}}
 +
{{CodeDescriptionRowA|L|PLU|PLU|Partial Line Up}}
 +
{{CodeDescriptionRowA|M|RI|RI|Reverse Line Feed}}
 +
{{CodeDescriptionRowA|N|SS2|SS2|Single-Shift Two}}
 +
{{CodeDescriptionRowA|O|SS3|SS3|Single-Shift Three}}
 +
{{CodeDescriptionRowA|P|DCS|DCS|Device Control String|''command'' ST}}
 +
{{CodeDescriptionRowA|Q|PU1|PU1|Private Use One}}
 +
{{CodeDescriptionRowA|R|PU2|PU2|Private Use Two}}
 +
{{CodeDescriptionRowA|S|STS|STS|Set Transmit State}}
 +
{{CodeDescriptionRowA|T|CCH|CCH|Cancel Character}}
 +
{{CodeDescriptionRowA|U|MW|MW|Message Waiting}}
 +
{{CodeDescriptionRowA|V|SPA|SPA|Start of Protected Area}}
 +
{{CodeDescriptionRowA|W|EPA|EPA|End of Protected Area}}
 +
{{CodeDescriptionRowA|X|SOS|SOS|Start Of String|''string'' ST}}
 +
{{CodeDescriptionRowA|Z|SCI|SCI|Single Character Introducer}}
 +
{{CodeDescriptionRowA|\|ST|ST|String Terminator}}
 +
{{CodeDescriptionRowA|]|OSC|OSC|Operating System Command|''command'' ST}}
 +
{{CodeDescriptionRowA|^|PM|PM|Privacy Message}}
 +
{{CodeDescriptionRowA|_|APC|APC|Application Program Command|''command'' ST}}
 +
{{CodeDescriptionRowA|`|DMI|DMI|Disable Manual Input}}
 +
{{CodeDescriptionRowA|a|INT|INT|Interrupt}}
 +
{{CodeDescriptionRowA|b|EMI|EMI|Enable Manual Input}}
 +
{{CodeDescriptionRowA|c|RIS|RIS|Reset to Initial State}}
 +
{{CodeDescriptionRowA|d|CMD|CMD|Coding Method Delimiter}}
 +
{{CodeDescriptionRowA|l|LS3R|LS3R|Locking-Shift Three Right}}
 +
{{CodeDescriptionRowA|n|LS2|LS2|Locking-Shift Two}}
 +
{{CodeDescriptionRowA|o|LS3|LS3|Locking-Shift Three}}
 +
{{CodeDescriptionRowA|<nowiki>}</nowiki>|LS2R|LS2R|Locking-Shift Two Right}}
 +
{{CodeDescriptionRowA|~|LS1R|LS1R|Locking-Shift One Right}}
 +
|}
  
 +
&dagger; '''Note:''' IND was removed from later versions of ECMA-48.
  
== ESC Sequences ==
 
 
{| border="1" class="wikitable sortable"
 
! style="padding: 1ex;" | Prefix !! style="padding: 1ex;" | Acronym !! style="padding: 1ex;" | Name !! style="padding: 1ex;" | Parameters
 
|-
 
! style="padding: 1ex; text-align: center;" | _
 
| style="padding: 1ex; text-align: center;" | <span id="APC">APC</span>
 
| style="padding: 1ex;" | Application Program Command
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | B
 
| style="padding: 1ex; text-align: center;" | <span id="BPH">BPH</span>
 
| style="padding: 1ex;" | Break Permitted Here
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | T
 
| style="padding: 1ex; text-align: center;" | <span id="CCH">CCH</span>
 
| style="padding: 1ex;" | Cancel Character
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | d
 
| style="padding: 1ex; text-align: center;" | <span id="CMD">CMD</span>
 
| style="padding: 1ex;" | Coding Method Delimiter
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | P
 
| style="padding: 1ex; text-align: center;" | <span id="DCS">DCS</span>
 
| style="padding: 1ex;" | Device Control String
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | `
 
| style="padding: 1ex; text-align: center;" | <span id="DMI">DMI</span>
 
| style="padding: 1ex;" | Disable Manual Input
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | b
 
| style="padding: 1ex; text-align: center;" | <span id="EMI">EMI</span>
 
| style="padding: 1ex;" | Enable Manual Input
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | W
 
| style="padding: 1ex; text-align: center;" | <span id="EPA">EPA</span>
 
| style="padding: 1ex;" | End of Protected Area
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | G
 
| style="padding: 1ex; text-align: center;" | <span id="ESA">ESA</span>
 
| style="padding: 1ex;" | End of Selected Area
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | I
 
| style="padding: 1ex; text-align: center;" | <span id="HTJ">HTJ</span>
 
| style="padding: 1ex;" | Horizontal Tab with Justification
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | H
 
| style="padding: 1ex; text-align: center;" | <span id="HTS">HTS</span>
 
| style="padding: 1ex;" | Horizontal Tab Set
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | a
 
| style="padding: 1ex; text-align: center;" | <span id="INT">INT</span>
 
| style="padding: 1ex;" | Interrupt
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | ~
 
| style="padding: 1ex; text-align: center;" | <span id="LS1R">LS1R</span>
 
| style="padding: 1ex;" | Locking-Shift One Right
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | n
 
| style="padding: 1ex; text-align: center;" | <span id="LS2">LS2</span>
 
| style="padding: 1ex;" | Locking-Shift Two
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | }
 
| style="padding: 1ex; text-align: center;" | <span id="LS2R">LS2R</span>
 
| style="padding: 1ex;" | Locking-Shift Two Right
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | o
 
| style="padding: 1ex; text-align: center;" | <span id="LS3">LS3</span>
 
| style="padding: 1ex;" | Locking-Shift Three
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | l
 
| style="padding: 1ex; text-align: center;" | <span id="LS3R">LS3R</span>
 
| style="padding: 1ex;" | Locking-Shift Three Right
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | U
 
| style="padding: 1ex; text-align: center;" | <span id="MW">MW</span>
 
| style="padding: 1ex;" | Message Waiting
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | C
 
| style="padding: 1ex; text-align: center;" | <span id="NBH">NBH</span>
 
| style="padding: 1ex;" | No Break Here
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | E
 
| style="padding: 1ex; text-align: center;" | <span id="NEL">NEL</span>
 
| style="padding: 1ex;" | Next Line
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | [
 
| style="padding: 1ex; text-align: center;" | <span id="OSC">OSC</span>
 
| style="padding: 1ex;" | Operating System Command
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | K
 
| style="padding: 1ex; text-align: center;" | <span id="PLD">PLD</span>
 
| style="padding: 1ex;" | Partial Line Down
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | L
 
| style="padding: 1ex; text-align: center;" | <span id="PLU">PLU</span>
 
| style="padding: 1ex;" | Partial Line Up
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | ^
 
| style="padding: 1ex; text-align: center;" | <span id="PM">PM</span>
 
| style="padding: 1ex;" | Privacy Message
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | Q
 
| style="padding: 1ex; text-align: center;" | <span id="PU1">PU1</span>
 
| style="padding: 1ex;" | Private Use One
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | R
 
| style="padding: 1ex; text-align: center;" | <span id="PU2">PU2</span>
 
| style="padding: 1ex;" | Private Use Two
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | M
 
| style="padding: 1ex; text-align: center;" | <span id="RI">RI</span>
 
| style="padding: 1ex;" | Reverse Line Feed
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | c
 
| style="padding: 1ex; text-align: center;" | <span id="RIS">RIS</span>
 
| style="padding: 1ex;" | Reset to Initial State
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | Z
 
| style="padding: 1ex; text-align: center;" | <span id="SCI">SCI</span>
 
| style="padding: 1ex;" | Single Character Introducer
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | X
 
| style="padding: 1ex; text-align: center;" | <span id="SOS">SOS</span>
 
| style="padding: 1ex;" | Start Of String
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | V
 
| style="padding: 1ex; text-align: center;" | <span id="SPA">SPA</span>
 
| style="padding: 1ex;" | Start of Protected Area
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | F
 
| style="padding: 1ex; text-align: center;" | <span id="SSA">SSA</span>
 
| style="padding: 1ex;" | Start of Selected Area
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | N
 
| style="padding: 1ex; text-align: center;" | <span id="SS2">SS2</span>
 
| style="padding: 1ex;" | Single-Shift Two
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | O
 
| style="padding: 1ex; text-align: center;" | <span id="SS3">SS3</span>
 
| style="padding: 1ex;" | Single-Shift Three
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | \
 
| style="padding: 1ex; text-align: center;" | <span id="ST">ST</span>
 
| style="padding: 1ex;" | String Terminator
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | S
 
| style="padding: 1ex; text-align: center;" | <span id="STS">STS</span>
 
| style="padding: 1ex;" | Set Transmit State
 
| style="padding: 1ex;" | ''none''
 
|-
 
! style="padding: 1ex; text-align: center;" | J
 
| style="padding: 1ex; text-align: center;" | <span id="VTS">VTS</span>
 
| style="padding: 1ex;" | Vertical Tab Set
 
| style="padding: 1ex;" | ''none''
 
 
|}
 
|}

Latest revision as of 04:25, 15 February 2013

Subpages of ESC

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 Sequences
Prefix Acronym Description Parameters
B BPH Break Permitted Here none
C NBH No Break Here none
D IND Index † none
E NEL Next Line none
F SSA Start of Selected Area none
G ESA End of Selected Area none
H HTS Horizontal Tab Set none
I HTJ Horizontal Tab with Justification none
J VTS Vertical Tab Set none
K PLD Partial Line Down none
L PLU Partial Line Up none
M RI Reverse Line Feed none
N SS2 Single-Shift Two none
O SS3 Single-Shift Three none
P DCS Device Control String command ST
Q PU1 Private Use One none
R PU2 Private Use Two none
S STS Set Transmit State none
T CCH Cancel Character none
U MW Message Waiting none
V SPA Start of Protected Area none
W EPA End of Protected Area none
X SOS Start Of String string ST
Z SCI Single Character Introducer none
\ ST String Terminator none
] OSC Operating System Command command ST
^ PM Privacy Message none
_ APC Application Program Command command ST
` DMI Disable Manual Input none
a INT Interrupt none
b EMI Enable Manual Input none
c RIS Reset to Initial State none
d CMD Coding Method Delimiter none
l LS3R Locking-Shift Three Right none
n LS2 Locking-Shift Two none
o LS3 Locking-Shift Three none
} LS2R Locking-Shift Two Right none
~ LS1R Locking-Shift One Right none

Note: IND was removed from later versions of ECMA-48.