Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / apps / konsole / developer-doc / old-documents / More / vt100_reference_card.txt
blobe80ea1325ec9063aefd5ef79524baca2912be056
1 Article 248 of comp.terminals:
2 Newsgroups: comp.terminals
3 Path: cs.utk.edu!gatech!udel!bogus.sura.net!opusc!usceast!chan
4 From: chan@ece.scarolina.edu (Simon Chan)
5 Subject: VT100 Reference Card !! ( if you are looking for....)
6 Message-ID: <chan.728236678@hertz>
7 Keywords: vt100 terminal escape codes
8 Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
9 Organization: USC  Department of Computer Science
10 Date: 28 Jan 93 15:57:58 GMT
11 Lines: 162
15 Taken from VT100 Programming Reference Card (DIGITAL)
17 ANSI Compatible Mode
19         Cursor Movement Commands
20                 Cursor up                       ESC [ Pn A
21                 Cursor down                     ESC [ Pn B
22                 Cursor forward (right)          ESC [ Pn C
23                 Cursor backward (left)          ESC [ Pn D
24                 Direct cursor addressing        ESC [ Pl; Pc H  or
25                                                 ESC [ Pl; Pc f
26                 Index                           ESC D
27                 Next Line                       ESC E
28                 Reverse index                   ESC M
29                 Save cursor and attributes      ESC 7
30                 Restore cursor and attributes   ESC 8
31                 * Pn = decimal parameter in string of ASCII digits.(default 1)
32                 * Pl = line number (default 0); Pc = column number (default 0)
34         Line Size (Double-Height and Double-Width) Commands
35                 Change this line to double-height top half      ESC # 3
36                 Change this line to double-height bottom half   ESC # 4
37                 Change this line to single-width single-height  ESC # 5
38                 Change this line to double-width single-height  ESC # 6
40         Character Attributes
41                 ESC [ Ps;Ps;Ps;...,Ps m
42                 Ps =    0 or None       All Attributes Off
43                         1               Bold on
44                         4               Underscore on
45                         5               Blink on
46                         7               Reverse video on
47                 Any other parameter values are ignored.
49         Erasing
50                 From cursor to end of line              ESC [ K  or ESC [ 0 K
51                 From beginning of line to cursor        ESC [ 1 K
52                 Entire line containing cursor           ESC [ 2 K
53                 From cursor to end of screen            ESC [ J  or ESC [ 0 J
54                 From beginning of screen to cursor      ESC [ 1 J
55                 Entire screen                           ESC [ 2 J
57         Programmable LEDs
58                 ESC [ Ps;Ps;...Ps q
59                 Ps =    0 or None       All LEDs Off
60                         1               L1 on
61                         2               L2 on
62                         3               L3 on
63                         4               L4 on
64                 Any other parameter values are ignored.
66         Character Set (G0 and G1 Designators)
67                 Charactor Set                   G0 Designator   G1 Designator
68                 United Kingdom (UK)             ESC ( A         ESC ) A
69                 United States (USASCII)         ESC ( B         ESC ) B
70                 Special graphics characters     ESC ( 0         ESC ) 0
71                  and line drawing set
72                 Alternate character ROM         ESC ( 1         ESC ) 1
73                 Alternate character ROM         ESC ( 2         ESC ) 2
74                  special graphics characters
76         Scrolling Region
77                 ESC [ Pt ; Pb r
78                 Pt is the number of the top line of the scrolling region;
79                 Pb is the number of the bottom line of the scrolling region 
80                 and must be greater than  Pt.
81                 (The default for Pt is line 1, the default for Pb is the end 
82                  of the screen)
84         TAB stops
85                 Set tab at current column               ESC H
86                 Clear tab at curent column              ESC [ g or ESC [ 0 g
87                 Clear all tabs                          ESC [ 3 g
89         Modes
90                                   To Set                To Reset
91         Mode Name            Mode        Sequence   Mode        Sequence
92         Line feed/new line   New line    ESC [20h   Line feed   ESC [20l
93         Cursor key mode      Application ESC [?1h   Cursor      ESC [?l
94         ANSI/VT52 mode       ANSI        N/A        VT52        ESC [?2l
95         Column mode          132 Col     ESC [?3h   80 Col      ESC [?3l
96         Scrolling mode       Smooth      ESC [?4h   Jump        ESC [?4l
97         Screen mode          Reverse     ESC [?5h   Normal      ESC [?5l
98         Origin mode          Relative    ESC [?6h   Absolute    ESC [?6l
99         Wraparound           On          ESC [?7h   Off         ESC [?7l
100         Auto repeat          On          ESC [?8h   Off         ESC [?8l
101         Interlace            On          ESC [?9h   Off         ESC [?9l
102         Graphic proc. option On          ESC 1      Off         ESC 2
103         Keypad mode          Application ESC =      Numeric     ESC >
105         Reports
106                 Cursor Position Report
107                 Invoked by                      ESC [ 6 n
108                 Response is                     ESC [ Pl; Pc R
109                 * Pl = line number; Pc = column number
111         Status Report
112                 Invoked by                      ESC [ 5 n
113                 Response is                     ESC [ 0 n  (terminal ok)
114                                                 ESC [ 3 n  (terminal not ok)
116         What Are You
117                 Invoked by                      ESC [ c  or  ESC [ O c
118                 Response is                     ESC [ ?1 ; Ps C
119                 Ps =    0       Base VT100, no options
120                         1       Processor option (STP)
121                         2       Advanced Video option (AVO)
122                         3       AVO and STP
123                         4       Graphocs processor option (GO)
124                         5       GO and STP
125                         6       GO and AVO
126                         7       GO, STP, and AVO
127         Alternately invoked by ESC Z (not recommended.) Response is the same.
129         Reset
130                 ESC c
132         Confidence Tests
133         Fill Screen with "Es"           ESC # 8
134         Invoke Test(s)                  ESC [ 2 ; Ps y
135         Ps =    1                               Power-up self test
136                                                 (ROM checksum, RAM, NVR,
137                                                 keyboard and AVO if installed)
138                 2(loop back connector required) Data Loop Back
139                 4(loop back connector required) ETA Modern Control Test
140                 8                               Repeat selected test(s)
141                                                 indefinitely
142                                                 (until failure or power off)
144 VT52 Compatible Mode
145         Cursor Up                               ESC A
146         Cursor Down                             ESC B
147         Cursor Right                            ESC C
148         Cursor Left                             ESC D
149         Select Special Graphics character set   ESC F
150         Select ASCII character set              ESC G
151         Cursor to home                          ESC H
152         Reverse line feed                       ESC I
153         Erase to end of screen                  ESC J
154         Erase to end of line                    ESC K
155         Direct cursor address                   ESC Ylc         (see note 1)
156         Identify                                ESC Z           (see note 2)
157         Enter alternate keypad mode             ESC =
158         Exit alternate keypad mode              ESC >
159         Enter ANSI mode                         ESC <
161         NOTE 1: Line and column numbers for direct cursor address are single
162                 character codes whose values are the desired number plus
163                 37 (in Octal). Line and column numbers start at 1.
164         NOTE 2: Response to ESC Z is ESC / Z.
168 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
169 Simon Chan                                      chan@ece.scarolina.edu
170 Department of Electrical & Computer Engineering
171 Swearingen Engineering Centre 
172 University of South Carolina 
173 Coulmbia, South Carolina 29208 
174 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
177 Article 269 of comp.terminals:
178 Path: cs.utk.edu!gatech!news.ans.net!cmcl2!adm!smoke!gwyn
179 From: gwyn@smoke.brl.mil (Doug Gwyn)
180 Newsgroups: comp.terminals
181 Subject: Re: VT100 Reference Card !!
182 Keywords: vt100 terminal escape codes
183 Message-ID: <19629@smoke.brl.mil>
184 Date: 1 Feb 93 15:01:49 GMT
185 References: <chan.728236678@hertz>
186 Organization: U.S. Army Ballistic Research Lab, APG MD.
187 Lines: 25
189 In article <chan.728236678@hertz> chan@ece.scarolina.edu (Simon Chan) writes:
190 >Taken from VT100 Programming Reference Card (DIGITAL)
192 Note that EK-VT100-RC-001 contains several errors and omissions.
193 The errors appear to all be fixed in the posted version.
194 Here are some additions:
196         Parameters to Direct cursor addressing can be omitted if 1.
197         "Index" is broken if NEWLINE is enabled (set-up).
198         "Reverse index" scrolls up retaining the same column.
200         CHARACTER SET DESIGNATORS: G0 = Shift-In, G1 = Shift-Out
202 >       ANSI/VT52 mode       ANSI        N/A        VT52        ESC [?2l
203         ANSI/VT52 mode       ANSI        ESC <      VT52        ESC [?2l
204         Modes can be combined using ";", for example "ESC [ ? 3 ; 4 ; 7 h"
206         CONFIDENCE TESTS: Parameter bits are summed into one parameter.
208         Hardcopy                ESC # 7
209         Graphic processor ON    ESC 1
210         Graphic processor OFF   ESC 2
212 The reference card showed incorrect graphics for octal code 140; its
213 correct graphic is ` (accent grave).