Difference between revisions of "CodeChart:ANSI/ESC"

From Terminals
Jump to: navigation, search
m (use row template)
m (moved User:Legalize/Control Sequences/ANSI/ESC to CodeChart:ANSI/ESC: Promote to real CodeChart)
 
(17 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
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Application Program Command||APC|_|APC}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Break Permitted Here||BPH|B|BPH}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Cancel Character||CCH|T|CCH}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Coding Method Delimiter||CMD|d|CMD}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Device Control String||DCS|P|DCS}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Disable Manual Input||DMI|`|DMI}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Enable Manual Input||EMI|b|EMI}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|End of Protected Area||EPA|W|EPA}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|End of Selected Area||ESA|G|ESA}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Horizontal Tab with Justification||HTJ|I|HTJ}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Horizontal Tab Set||HTS|H|HTS}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Interrupt||INT|a|INT}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Locking-Shift One Right||LS1R|~|LS1R}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Locking-Shift Two||LS2|n|LS2}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Locking-Shift Two Right||LS2R|<nowiki>}</nowiki>|LS2R}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Locking-Shift Three||LS3|o|LS3}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Locking-Shift Three Right||LS3R|l|LS3R}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Message Waiting||MW|U|MW}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|No Break Here||NBH|C|NBH}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Next Line||NEL|E|NEL}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Operating System Command||OSC|[|OSC}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Partial Line Down||PLD|K|PLD}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Partial Line Up||PLU|L|PLU}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Privacy Message||PM|^|PM}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Private Use One||PU1|Q|PU1}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Private Use Two||PU2|R|PU2}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Reverse Line Feed||RI|M|RI}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Reset to Initial State||RIS|c|RIS}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Single Character Introducer||SCI|Z|SCI}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Start Of String||SOS|X|SOS}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Start of Protected Area||SPA|V|SPA}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Start of Selected Area||SSA|F|SSA}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Single-Shift Two||SS2|N|SS2}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Single-Shift Three||SS3|O|SS3}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|String Terminator||ST|\|ST}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Set Transmit State||STS|S|STS}}
 
{{User:Legalize/Control_Sequences/CodeDescriptionTable/Row|Vertical Tab Set||VTS|J|VTS}}
 
 
|}
 
|}

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.