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

From Terminals
< CodeChart:ANSI‎ | ESC‎ | CSI
Jump to: navigation, search
m (SLL)
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| border="1" style="text-align: center;"
+
[[:Special:PrefixIndex/{{FULLPAGENAME}}/|Subpages of {{SUBPAGENAME}}]]
! style="width: 3em;" |   !! style="width: 3em;" | 0 !! style="width: 3em;" | 1
+
 
! style="width: 3em;" | 2 !! style="width: 3em;" | 3 !! style="width: 3em;" | 4
+
{|
! style="width: 3em;" | 5 !! style="width: 3em;" | 6 !! style="width: 3em;" | 7
+
| valign="top" align="right" |
 +
{{CodeChart
 +
| title=Received
 +
| a=#SR
 +
| c=#GSS
 +
| d=#FNT
 +
| e=#TSS
 +
| f=#JFY
 +
| g=#SPI
 +
| h=#QUAD
 +
| i=#SSU
 +
| j=#PFS
 +
| k=#SHS
 +
| l=#SVS
 +
| m=#IGS
 +
| o=#IDCS
 +
| p=#PPA
 +
| q=#PPR
 +
| b=#GSM
 +
| r=#PPB
 +
| s=#SPD
 +
| t=#DTA
 +
| u=#SLH
 +
| v=#SLL
 +
| w=#FNK
 +
| x=#SPQR
 +
| y=#SEF
 +
| z=#PEC
 +
 
 +
| lowera=#TALE
 +
| lowerb=#TAC
 +
| lowerc=#TCC
 +
| lowerd=#TSR
 +
| lowere=#SCO
 +
| lowerf=#SRCS
 +
| lowerg=#SCS
 +
| lowerh=#SLS
 +
| loweri=#SPH
 +
| lowerj=#SPL
 +
| lowerk=#SCP
 +
 
 +
| at=#SL
 +
| backquote=#TATE
 +
| openbracket=#SSW
 +
| backslash=#SACS
 +
| closebracket=#SAPV
 +
| caret=#STAB
 +
| underscore=#GCC
 +
}}
 +
| style="width: 2ex;" |
 +
| valign="top" |
 +
{{CodeChart
 +
| title=Transmitted
 +
}}
 
|-
 
|-
! 0
+
| valign="top" |
| NUL || DLE || SP || 0 || [[#SL|'''@''']] || [[#PPA|'''P''']] || ` || p
+
{| class="wikitable sortable"
|-
+
|+ ESC CSI SP Sequences
! 1
+
{{CodeDescriptionHeaderA}}
| SOH || DC1 || || 1 || A || [[#PPR|'''Q''']] || a || q
+
{{CodeDescriptionRowA|@|SL|SL|Scroll Left|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|A|SR|SR|Scroll Right|''Pn1''<nowiki>=</nowiki>1}}
! 2
+
{{CodeDescriptionRowA|B|GSM|GSM|Graphic Size Modification|''Ps1''<nowiki>=</nowiki>100 <code>;</code> ''Ps2''<nowiki>=</nowiki>100}}
| STX || DC2 || "  || 2 || [[#GSM|'''B''']] || [[#PPB|'''R''']] || b || r
+
{{CodeDescriptionRowA|C|GSS|GSS|Graphic Size Selection|''Ps1''; ''Ps2''}}
|-
+
{{CodeDescriptionRowA|D|FNT|FNT|Font Selection|[[#fnt-parameter1|''Ps1'']]<nowiki>=</nowiki>0 <code>;</code> ''Ps2''<nowiki>=</nowiki>0}}
! 3
+
{{CodeDescriptionRowA|E|TSS|TSS|Thin Space Specification|''Pn1''}}
| ETX || DC3 || || 3 || [[#GSS|'''C''']] || S || c || s
+
{{CodeDescriptionRowA|F|JFY|JFY|Justify|[[#jfy-parameter|''Ps1'']]<nowiki>=</nowiki>0 <code>;</code> ...}}
|-
+
{{CodeDescriptionRowA|G|SPI|SPI|Spacing Increment|''Pn1'' <code>;</code> ''Pn2''}}
! 4
+
{{CodeDescriptionRowA|H|QUAD|QUAD|Quad|''Ps1''<nowiki>=</nowiki>0 <code>;</code> ...}}
| EOT || DC4 || || 4 || [[#FNT|'''D''']] || [[#DTA|'''T''']] || d || t
+
{{CodeDescriptionRowA|I|SSU|SSU|Select Size Unit|''Ps1''<nowiki>=</nowiki>0}}
|--
+
{{CodeDescriptionRowA|J|PFS|PFS|Page Format Selection|''Ps1''<nowiki>=</nowiki>0}}
! 5
+
{{CodeDescriptionRowA|K|SHS|SHS|Select Character Spacing|''Ps1''<nowiki>=</nowiki>0}}
| ENQ || NAQ || || 5 || E || [[#SLH|'''U''']] || [[#SCO|'''e''']] || u
+
{{CodeDescriptionRowA|L|SVS|SVS|Select Vertical Spacing|''Ps1''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|M|IGS|IGS|Identify Graphic Subrepertoire|''Ps1''}}
! 6
+
{{CodeDescriptionRowA|O|IDCS|IDCS|Identify Device Control String|''Ps1''}}
| ACK || SYN || || 6 || [[#JFY|'''F''']] || [[#SLL|'''V''']] || f || v
+
{{CodeDescriptionRowA|P|PPA|PPA|Page Position Absolute|''Pn1''<nowiki>=</nowiki>1}}
|-
+
{{CodeDescriptionRowA|Q|PPR|PPR|Page Position Relative|''Pn1''<nowiki>=</nowiki>1}}
! 7
+
{{CodeDescriptionRowA|R|PPB|PPB|Page Position Backward|''Pn1''<nowiki>=</nowiki>1}}
| BEL || ETB || ' || 7 || G || [[#FNK|'''W''']] || [[#SCS|'''g''']] || w
+
{{CodeDescriptionRowA|S|SPD|SPD|Select Presentation Direction|''Ps1''<nowiki>=</nowiki>0 <code>;</code> ''Ps2''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|T|DTA|DTA|Dimension Text Area|''Pn1'' <code>;</code> ''Pn2''}}
! 8
+
{{CodeDescriptionRowA|U|SLH|SLH|Set Line Home|''Pn1''}}
| BS  || CAN || || 8 || [[#QUAD|'''H''']] || X || h || x
+
{{CodeDescriptionRowA|V|SLL|SLL|Set Line Limit|''Pn1''}}
|-
+
{{CodeDescriptionRowA|W|FNK|FNK|Function Key|''Pn1''}}
! 9
+
{{CodeDescriptionRowA|X|SPQR|SPQR|Select Print Quality and Rapidity|''Ps1''<nowiki>=</nowiki>0}}
| HT  || EM  || || 9 || I || [[#SEF|'''Y''']] || i || y
+
{{CodeDescriptionRowA|Y|SEF|SEF|Sheet Eject and Feed|''Ps1''<nowiki>=</nowiki>0 <code>;</code> ''Ps2''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|Z|PEC|PEC|Presentation Expand or Contract|''Ps1''<nowiki>=</nowiki>0}}
! 10
+
{{CodeDescriptionRowA|[|SSW|SSW|Set Space Width|''Pn1''}}
| LF  || SUB || || : || [[#PFS|'''J''']] || [[#PEC|'''Z''']] || j || z
+
{{CodeDescriptionRowA|\|SACS|SACS|Set Additional Character Separation|''Pn1''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|]|SAPV|SAPV|Set Alternative Presentation Variants|''Ps1''<nowiki>=</nowiki>0 <code>;</code> ...}}
! 11
+
{{CodeDescriptionRowA|^|STAB|STAB|Selective Tabulation|''Ps1''}}
| VT || ESC || + || ; || [[#SHS|'''K''']] || [ || [[#SCP|'''k''']] || {
+
{{CodeDescriptionRowA|_|GCC|GCC|Graphic Character Combination|[[#gcc-parameter|''Ps1'']]<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|`|TATE|TATE|Tabulation Aligned Trailing Edge|''Pn1''}}
! 12
+
{{CodeDescriptionRowA|a|TALE|TALE|Tabulation Aligned Leading Edge|''Pn1''}}
| FF || IS4 || , || < || L || [[#SACS|'''\''']] || l || |
+
{{CodeDescriptionRowA|b|TAC|TAC|Tabulation Align Centered|''Pn1''}}
|-
+
{{CodeDescriptionRowA|c|TCC|TCC|Tabulation Centered on Character|''Pn1'' <code>;</code> ''Pn2''<nowiki>=</nowiki>32}}
! 13
+
{{CodeDescriptionRowA|d|TSR|TSR|Tabulation Stop Remove|''Pn1''}}
| CR || IS3 || - || = || [[#IGS|'''M''']] || [[#SAPV|''']''']] || m || }
+
{{CodeDescriptionRowA|e|SCO|SCO|Select Character Orientation|''Ps1''<nowiki>=</nowiki>0}}
|-
+
{{CodeDescriptionRowA|f|SRCS|SRCS|Set Reduced Character Separation|''Pn1''<nowiki>=</nowiki>0}}
! 14
+
{{CodeDescriptionRowA|g|SCS|SCS|Select Character Spacing|''Pn1''}}
| SO || IS2 || . || > || N || ^ || n || ~
+
{{CodeDescriptionRowA|h|SLS|SLS|Set Line Spacing|''Pn1''}}
|-
+
{{CodeDescriptionRowA|i|SPH|SPH|Set Page Home|''Pn1''}}
! 15
+
{{CodeDescriptionRowA|j|SPL|SPL|Set Page Limit|''Pn1''}}
| SI || IS1 || / || ? || [[#IDCS|'''O''']] || [[#GCC|'''_''']] || o || DEL
+
{{CodeDescriptionRowA|k|SCP|SCP|Select Character Path|''Ps1'' <code>;</code> ''Ps2''}}
 +
|}
 +
 
 +
{| class="wikitable"
 +
|+ id="fnt-parameter1" | FNT Parameter 1
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Primary font}}
 +
{{ValueDescriptionRow|1|First alternate font}}
 +
{{ValueDescriptionRow|2|Second alternate font}}
 +
{{ValueDescriptionRow|3|Third alternate font}}
 +
{{ValueDescriptionRow|4|Fourth alternate font}}
 +
{{ValueDescriptionRow|5|Fifth alternate font}}
 +
{{ValueDescriptionRow|6|Sixth alternate font}}
 +
{{ValueDescriptionRow|7|Seventh alternate font}}
 +
{{ValueDescriptionRow|8|Eighth alternate font}}
 +
{{ValueDescriptionRow|9|Ninth alternate font}}
 
|}
 
|}
  
 +
{| class="wikitable"
 +
|+ id="gcc-parameter" | GCC Parameter
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|Combine next two characters}}
 +
{{ValueDescriptionRow|1|Begin combining characters}}
 +
{{ValueDescriptionRow|2|End combining characters}}
 +
|}
  
== ESC CSI SP Sequences ==
+
{| class="wikitable"
 +
|+ id="jfy-parameter" | JFY Parameter
 +
{{ValueDescriptionHeader}}
 +
{{ValueDescriptionRow|0|No justification, end of justification of previous text}}
 +
{{ValueDescriptionRow|1|Word fill}}
 +
{{ValueDescriptionRow|2|Word space}}
 +
{{ValueDescriptionRow|3|Letter space}}
 +
{{ValueDescriptionRow|4|Hyphenation}}
 +
{{ValueDescriptionRow|5|Flush to line home position margin}}
 +
{{ValueDescriptionRow|6|Center between the home position and line limit position margin}}
 +
{{ValueDescriptionRow|7|Flush to line limit position margin}}
 +
{{ValueDescriptionRow|8|Italian hyphenation}}
 +
|}
  
{| 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;" | T
 
| style="padding: 1ex;" | <span id="DTA">DTA</span>
 
| style="padding: 1ex;" | Dimension Text Area
 
| style="padding: 1ex;" | ''Pn1''; ''Pn2''
 
|-
 
! style="padding: 1ex;" | W
 
| style="padding: 1ex;" | <span id="FNK">FNK</span>
 
| style="padding: 1ex;" | Function Key
 
| style="padding: 1ex;" | ''Pn1''
 
|-
 
! style="padding: 1ex;" | D
 
| style="padding: 1ex;" | <span id="FNT">FNT</span>
 
| style="padding: 1ex;" | Font Selection
 
| style="padding: 1ex;" | ''Ps1''=0; ''Ps2''=0
 
|-
 
! style="padding: 1ex;" | _
 
| style="padding: 1ex;" | <span id="GCC">GCC</span>
 
| style="padding: 1ex;" | Graphic Character Combination
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | B
 
| style="padding: 1ex;" | <span id="GSM">GSM</span>
 
| style="padding: 1ex;" | Graphic Size Modification
 
| style="padding: 1ex;" | ''Ps1''=100; ''Ps2''=100
 
|-
 
! style="padding: 1ex;" | C
 
| style="padding: 1ex;" | <span id="GSS">GSS</span>
 
| style="padding: 1ex;" | Graphic Size Selection
 
| style="padding: 1ex;" | ''Ps1''; ''Ps2''
 
|-
 
! style="padding: 1ex;" | O
 
| style="padding: 1ex;" | <span id="IDCS">IDCS</span>
 
| style="padding: 1ex;" | Identify Device Control String
 
| style="padding: 1ex;" | ''Ps1''
 
|-
 
! style="padding: 1ex;" | M
 
| style="padding: 1ex;" | <span id="IGS">IGS</span>
 
| style="padding: 1ex;" | Identify Graphic Subrepertoire
 
| style="padding: 1ex;" | ''Ps1''
 
|-
 
! style="padding: 1ex;" | F
 
| style="padding: 1ex;" | <span id="JFY">JFY</span>
 
| style="padding: 1ex;" | Justify
 
| style="padding: 1ex;" | ''Ps1''=0; ...
 
|-
 
! style="padding: 1ex;" | Z
 
| style="padding: 1ex;" | <span id="PEC">PEC</span>
 
| style="padding: 1ex;" | Presentation Expand or Contract
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | J
 
| style="padding: 1ex;" | <span id="PFS">PFS</span>
 
| style="padding: 1ex;" | Page Format Selection
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | P
 
| style="padding: 1ex;" | <span id="PPA">PPA</span>
 
| style="padding: 1ex;" | Page Position Absolute
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | R
 
| style="padding: 1ex;" | <span id="PPB">PPB</span>
 
| style="padding: 1ex;" | Page Position Backward
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | Q
 
| style="padding: 1ex;" | <span id="PPR">PPR</span>
 
| style="padding: 1ex;" | Page Position Relative
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | H
 
| style="padding: 1ex;" | <span id="QUAD">QUAD</span>
 
| style="padding: 1ex;" | Quad
 
| style="padding: 1ex;" | ''Ps1''=0; ...
 
|-
 
! style="padding: 1ex;" | \
 
| style="padding: 1ex;" | <span id="SACS">SACS</span>
 
| style="padding: 1ex;" | Set Additional Character Separation
 
| style="padding: 1ex;" | ''Pn1''=0
 
|-
 
! style="padding: 1ex;" | ]
 
| style="padding: 1ex;" | <span id="SAPV">SAPV</span>
 
| style="padding: 1ex;" | Set Alternative Presentation Variants
 
| style="padding: 1ex;" | ''Ps1''=0; ...
 
|-
 
! style="padding: 1ex;" | e
 
| style="padding: 1ex;" | <span id="SCO">SCO</span>
 
| style="padding: 1ex;" | Select Character Orientation
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | k
 
| style="padding: 1ex;" | <span id="SCP">SCP</span>
 
| style="padding: 1ex;" | Select Character Path
 
| style="padding: 1ex;" | ''Ps1''; ''Ps2''
 
|-
 
! style="padding: 1ex;" | g
 
| style="padding: 1ex;" | <span id="SCS">SCS</span>
 
| style="padding: 1ex;" | Select Character Spacing
 
| style="padding: 1ex;" | ''Pn1''
 
|-
 
! style="padding: 1ex;" | Y
 
| style="padding: 1ex;" | <span id="SEF">SEF</span>
 
| style="padding: 1ex;" | Sheet Eject and Feed
 
| style="padding: 1ex;" | ''Ps1''=0; ''Ps2''=0
 
|-
 
! style="padding: 1ex;" | K
 
| style="padding: 1ex;" | <span id="SHS">SHS</span>
 
| style="padding: 1ex;" | Select Character Spacing
 
| style="padding: 1ex;" | ''Ps1''=0
 
|-
 
! style="padding: 1ex;" | @
 
| style="padding: 1ex;" | <span id="SL">SL</span>
 
| style="padding: 1ex;" | Scroll Left
 
| style="padding: 1ex;" | ''Pn1''=1
 
|-
 
! style="padding: 1ex;" | U
 
| style="padding: 1ex;" | <span id="SLH">SLH</span>
 
| style="padding: 1ex;" | Set Line Home
 
| style="padding: 1ex;" | ''Pn1''
 
|-
 
! style="padding: 1ex;" | V
 
| style="padding: 1ex;" | <span id="SLL">SLL</span>
 
| style="padding: 1ex;" | Set Line Limit
 
| style="padding: 1ex;" | ''Pn1''
 
 
|}
 
|}

Latest revision as of 04:25, 15 February 2013

Subpages of SP

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 SP Sequences
Prefix Acronym Description Parameters
@ SL Scroll Left Pn1=1
A SR Scroll Right Pn1=1
B GSM Graphic Size Modification Ps1=100 ; Ps2=100
C GSS Graphic Size Selection Ps1; Ps2
D FNT Font Selection Ps1=0 ; Ps2=0
E TSS Thin Space Specification Pn1
F JFY Justify Ps1=0 ; ...
G SPI Spacing Increment Pn1 ; Pn2
H QUAD Quad Ps1=0 ; ...
I SSU Select Size Unit Ps1=0
J PFS Page Format Selection Ps1=0
K SHS Select Character Spacing Ps1=0
L SVS Select Vertical Spacing Ps1=0
M IGS Identify Graphic Subrepertoire Ps1
O IDCS Identify Device Control String Ps1
P PPA Page Position Absolute Pn1=1
Q PPR Page Position Relative Pn1=1
R PPB Page Position Backward Pn1=1
S SPD Select Presentation Direction Ps1=0 ; Ps2=0
T DTA Dimension Text Area Pn1 ; Pn2
U SLH Set Line Home Pn1
V SLL Set Line Limit Pn1
W FNK Function Key Pn1
X SPQR Select Print Quality and Rapidity Ps1=0
Y SEF Sheet Eject and Feed Ps1=0 ; Ps2=0
Z PEC Presentation Expand or Contract Ps1=0
[ SSW Set Space Width Pn1
\ SACS Set Additional Character Separation Pn1=0
] SAPV Set Alternative Presentation Variants Ps1=0 ; ...
^ STAB Selective Tabulation Ps1
_ GCC Graphic Character Combination Ps1=0
` TATE Tabulation Aligned Trailing Edge Pn1
a TALE Tabulation Aligned Leading Edge Pn1
b TAC Tabulation Align Centered Pn1
c TCC Tabulation Centered on Character Pn1 ; Pn2=32
d TSR Tabulation Stop Remove Pn1
e SCO Select Character Orientation Ps1=0
f SRCS Set Reduced Character Separation Pn1=0
g SCS Select Character Spacing Pn1
h SLS Set Line Spacing Pn1
i SPH Set Page Home Pn1
j SPL Set Page Limit Pn1
k SCP Select Character Path Ps1 ; Ps2
FNT Parameter 1
Value Description
0 Primary font
1 First alternate font
2 Second alternate font
3 Third alternate font
4 Fourth alternate font
5 Fifth alternate font
6 Sixth alternate font
7 Seventh alternate font
8 Eighth alternate font
9 Ninth alternate font
GCC Parameter
Value Description
0 Combine next two characters
1 Begin combining characters
2 End combining characters
JFY Parameter
Value Description
0 No justification, end of justification of previous text
1 Word fill
2 Word space
3 Letter space
4 Hyphenation
5 Flush to line home position margin
6 Center between the home position and line limit position margin
7 Flush to line limit position margin
8 Italian hyphenation