ansi.doc 3-Oct-1986 by Aiichiro Hayashi
BEL (^G x07)
BS (^H x08)
HT (^I x09)
LF/NL (^J x0a)
VT (^K x0b) Same as LF (VT100) UP (98)
FF (^L x0c) Same as LF (VT100) FORWARD (98)
CR (^M x0d)
SO (^N x0e) Invoke G1 (VT100)
SI (^O x0f) Invoke G0 (VT100)
CAN (^X x18) Abort Escape Sequence (VT100)
SUB (^Z x1a) Same as CAN (VT100) CLS (98)
ESC (^[ x1b)
RS (^_ x1e) HOME (98)
ESC SP Reset to Initial Term Command State (TERM)
ESC ! Request ID (TERM)
Report N E C 0 0 0 0 0 0 1 0 CR [LF]
ESC " Enable Keyboard (TERM)
ESC # Disable Keyboard (TERM)
ESC # 3 DECDHL Double Height Top Half (DEC)
ESC # 4 DECDHL Double Height Bottom Half (DEC)
ESC # 5 DECSWL Single-Width Line (DEC)
ESC # 6 DECDWL Double-Width Line (DEC)
ESC # 8 DECALN Screen Alignment Display (DEC)
ESC ( set SCS Select Character Set G0
ESC ) set SCS Select Character Set G1
set A United Kingdom
B ASCII
0 Special Graphics (VT100) KANJI (98 G1)
1 Alternate Character ROM Standard Character Set
2 Alternate Character ROM Special Graphics
3 Select Graph Mode (98 G1)
ESC * CLS (98) CLS and HOME (TERM)
ESC . statement CR Execute BASIC Statement and Output is lost (TERM)
ESC < statement CR Execute BASIC Statement and send to host (TERM)
ESC = DECKPAM Keypad Application Mode (DEC)
ESC = bl bc GOTOYX (98)
ESC > DECKPNM Keypad Numeric Mode (DEC)
ESC > statement CR Execute BASIC Statement and display on 9801 (TERM)
ESC 8 DECRC Restore Cursor (DEC)
ESC 7 DECSC Save Cursor (DEC)
ESC @ Printer On (TERM)
ESC A Printer Off (TERM)
ESC D IND Index (Down and scroll if required)
ESC E NEL New Line (and scroll if required)
ESC H HTS Horizontal Tabulation Set
ESC M RI Reverse Index (Up and scroll if req.)
ESC T Clear Line and CR (TERM)
ESC Y CLEOS Erase to End of Scroll Area (TERM)
ESC Z DECID Identify Terminal (DEC) = DA (ESC [ c)
ESC c RIS Reset To Initial State(incl.self test)
ESC [ pn @ Insert Character (98)
ESC [ pn A (1) CUU Cursor Up
ESC [ pn B (1) CUD Cursor Down
ESC [ pn C (1) CUF Cursor Forward
ESC [ pn D (1) CUB Cursor Backward
ESC [ pl ; pc H (1,1) CUP Cursor Position = HVP
ESC [ ps J (0) ED Erase in Display
ps 0 Erase from cursor to the end of the screen inclusive
1 Erase from the start of the screen to cursor inclusive
2 Erase all of the screen
ESC [ ps K (0) EL Erase in Line
ps 0 Erase from cursor to the end of the line inclusive
1 Erase from the start of the line to cursor inclusive
2 Erase all of the line
ESC [ pn L Insert Line (98)
ESC [ pn M Delete Line (98)
ESC [ pn P Delete Character (98)
ESC [ pl ; pc R (1,1) CPR Cursor Position Report (DSR reaction)
ESC [ pn c (0) DA Device Attributes
Response No Options ESC [ ? 1 ; 0 c
Processor Option (STP) ESC [ ? 1 ; 1 c
Advanced Video Option (AVO) ESC [ ? 1 ; 2 c
AVO and STP ESC [ ? 1 ; 3 c
Graphics Option (GPO) ESC [ ? 1 ; 4 c
GPO and STP ESC [ ? 1 ; 5 c
GPO and AVO ESC [ ? 1 ; 6 c
GPO, STP, and AVO ESC [ ? 1 ; 7 c
ESC [ pl ; pc f (1,1) HVP Horizontal and Vertical Position = CUP
ESC [ ps g (0) TBC Tabulation Clear
ps 0 Clear tab stop at cursor
3 Clear all tab stops
ESC [ ps ; ... ; ps h SM Set Mode
ESC [ ps ; ps ; ... ; ps l RM Reset Mode
Modes in VT100
0 Error (ignored)
20 LNM Line Feed Newline Mode (Set to NL)
? 0 Error (ignored)
? 1 DECCKM Cursor key (Set to Application)
? 2 DECANM ANSI/VT52 (Set to ANSI)
? 3 DECCOLM Column (Set to 132)
? 4 DECSCLM Scrolling (Set to Smooth)
? 5 DECSCNM Screen (Set to Reverse)
? 6 DECOM Origin (Set to Relative)
? 7 DECAWM Auto Wrap (98) (Set to On)
? 8 DECARM Auto Repeating (Set to On)
? 9 DECINLM Interlace (Set to On)
Modes in 98
4 Enable Insert Mode
? 7 DECAWM Auto Wrap (98) (Set to On)
> 1 Enable Bottom Line (Disable to show pfkey)
> 3 Select 20 line mode (Disable to 25 line mode)
> 5 Disable Cursor
Modes in 5550(JX)
= 7 Auto Wrap
= 8 80 x 25 monochrome text
= 9 720 x 512 monochrome graphic
= 11 360 x 512 color graphic
= 14 80 x 25 color text
= 17 40 x 11 8 color text
= 19 80 x 11 8 color text
= 21 320 x 200 4 color graph
= 22 640 x 200 2 color graph
= 24 160 x 200 16 color graph
= 25 320 x 200 16 color graph
= 26 640 x 200 4 color graph
ESC [ ps ; ... ; ps m (0) SGR Select Graphic Rendition
ps 0 Attributes off
1 Bold or increased intensity (VT100) (B/W in 98)
2 Vertical line/Character Graphic (98)
4 Underscore (VT100) (98)
5 Blink (VT100) (98)
7 Negative (Reverse) Image (VT100) (98)
8 Secret (98) (5550)
98
16 Secret
17 Red
18 Blue
19 Violett
20 Green
21 Yellow
22 Skyblue
23 White
98/5550
30 Black
31 Red
32 Green
33 Yellow
34 Blue
35 Violett
36 Skyblue
37 White
5550
38 Horizontal line
39 Vertical line
98/5550
40 Black Reverse
41 Red Reverse
42 Green Reverse
43 Yellow Reverse
44 Blue Reverse
45 Violett Reverse
46 Skyblue Reverse
47 White Reverse
V_CON
255 BOX
ESC [ ps n (0) DSR Device Status Report
ps 0 Report Ready, No malfunctions detected
3 Report Malfunction
5 Request Status (Using a DSR control sequence)
6 Request Active Position (Using CPR sequence)
ESC [ kc ; { cc | "string" } ; ... ; { cc | "string"; } p
Assign Keyboard (5550)
kc key code / 0 ; ext key code
cc output character code to be assigned for key kc
string output character string to be assigned for key kc
cc's and strings are concatenated
ESC [ Ps q (0) DECLL Load LEDs (DEC)
Ps 0 Clear LEDs L1 through L4
1 Light L1
2 Light L2
3 Light L3
4 Light L4
ESC [ p1 ; p2 r (1,24)(entire) DECSTBM Set Top and Bottom Margins (DEC)
ESC [ s SCP Save Cursor Position (98) (5550)
ESC [ u RCP Restore Cursor Position (98) (5550)
ESC [ sol ; par ; nbits ; xspeed ; rspeed ; clkmul ; flags x
DECREPTPARM Report Terminal Parameters
ESC [ sol x (0) DECREQTPARM Request Terminal Parameters
sol 0 request; allow to send reports when exit setup
1 request; report only on request
2 report
3 report; only on request mode
par 1 no parity
4 odd
5 even
nbits 1 8 bits per character
2 7 bits per character
xspeed 0 50 bits per second
rspeed 8 75
16 110
24 134.5
32 150
40 200
48 300
56 600
64 1200
72 1800
80 2000
88 2400
96 3600
104 4800
112 9600
120 19200
clkmul 1 bit rate multiplier is 16
flags 0-15 STP Option Device bits
ESC [ 2 ; ps y (0) DECTST Invoke Confidence Test (DEC)
ps 0 No test but Reset
1 Power up self-test (ROM/RAM/NVR/keyboard/AVO)
2 Data Loop Back
4 EIA modem control test
8 Repeat Selected Test indefinitely (untill failure)
-----------------------------------------------------------------------------
VT100 VT52 Mode
ESC < Enter ANSI mode
ESC = Enter alternate keypad mode
ESC > Exit alternate keypad mode
ESC A Cursor Up
ESC B Cursor Down
ESC C Cursor Right
ESC D Cursor Left
ESC F Select Special Graphics Character Set
ESC G Select ASCII Character Set
ESC H Cursor to Home
ESC I Reverse Line Feed
ESC J Erase to End of Screen
ESC K Erase to End of Line
ESC Y bl bc Direct Cursor Address
ESC Z Identify (Report ESC / Z)
end of ansi.doc
|