~ubuntu-branches/ubuntu/lucid/kdebase/lucid

« back to all changes in this revision

Viewing changes to konsole/doc/More/vt100_codes_news.txt

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-27 12:09:48 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080527120948-dottsyd5rcwhzd36
Tags: 4:4.0.80-1ubuntu1
* Merge with Debian
 - remove 97_fix_target_link_libraries.diff
 - Add replaces/conflicts on -kde4 packages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 vt100_codes_news.txt
2
 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3
 
 
4
 
 This information is largely derived from DEC document EK-VT100-UG-003,
5
 
 the original manual for the VT100.
6
 
 
7
 
 Most so-called VT100 implementations  (both stand-alone terminals and
8
 
 PC emulators) actually implement more controls than are given here. 
9
 
 The minimal standard is really the slightly more advanced VT102 terminal.
10
 
 
11
 
 ...RSS
12
 
 
13
 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
14
 
 
15
 
Path: cs.utk.edu!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!pipex!sunic
16
 
      !trane.uninett.no!news.eunet.no!nuug!news.eunet.fi!funic!nntp.hut.fi
17
 
      !lk-hp-14.hut.fi!pev
18
 
From: pev@lk-hp-14.hut.fi (Petri Virekoski)
19
 
Newsgroups: comp.terminals
20
 
Subject: VT100 control info
21
 
Date: 11 Sep 1993 12:43:22 GMT
22
 
Organization: Helsinki University of Technology
23
 
Lines: 878
24
 
Distribution: world
25
 
Message-ID: <26sh5a$oct@nntp.hut.fi>
26
 
NNTP-Posting-Host: lk-hp-14.hut.fi
27
 
 
28
 
 
29
 
OK. I finally found this on my local machine by doing a locate.
30
 
Still haven't found any FTP site bearing this kind of information.
31
 
I myself would need a similar file with extensions for VT200/VT220.
32
 
Please do not address any complaints to me, since I just copied this file
33
 
as I found it. There might be some escape sequences missing from the
34
 
end because there was some carbage, but I don't know. Here goes...
35
 
 
36
 
 
37
 
This file describes information needed for controlling the VT100 terminal from
38
 
a remote computer.  All of the information was derived from the VT100 user's
39
 
manual, Programmer's Information section.  Full documentation can be obtain
40
 
from DIGITAL'S Accessory and Supplies Group.
41
 
 
42
 
   [The notation  <ESC>  denotes a single ASCII Escape character, 1Bx.]
43
 
 
44
 
 
45
 
                                ANSI mode w/cursor      ANSI mode w/cursor
46
 
Cursor Key      VT52 mode       key mode reset          key mode set
47
 
--------------------------------------------------------------------------
48
 
   UP           <ESC>A          <ESC>[A                 <ESC>OA
49
 
  DOWN          <ESC>B          <ESC>[B                 <ESC>OB
50
 
  RIGHT         <ESC>C          <ESC>[C                 <ESC>OC
51
 
  LEFT          <ESC>D          <ESC>[D                 <ESC>OD
52
 
 
53
 
 
54
 
*******************************
55
 
* Special Graphics Characters *
56
 
*******************************
57
 
 
58
 
 
59
 
        If the Special Graphics set is selected, the graphics for ASCII codes
60
 
0137 through 0176 will be replaced according to the following table (see the
61
 
SCS control sequence).
62
 
 
63
 
 
64
 
Octal    ASCII      Special              Octal    ASCII     Special
65
 
Code    graphic     graphic              code    graphic    graphic
66
 
-------------------------------------------------------------------------------
67
 
0137      _         Blank                0157       o       Horiz Line - scan 1
68
 
0140      \         Diamond              0160       p       Horiz Line - scan 3
69
 
0141      a         Checkerboard         0161       q       Horiz Line - scan 5
70
 
0142      b         Digraph: HT          0162       r       Horiz Line - scan 7
71
 
0143      c         Digraph: FF          0163       s       Horiz Line - scan 9
72
 
0144      d         Digraph: CR          0164       t       Left "T" (|-)
73
 
0145      e         Digraph: LF          0165       u       Right "T" (-|)
74
 
0146      f         Degree Symbol        0166       v       Bottom "T" (|_)
75
 
0147      g         +/- Symbol           0167       w       Top "T" (T)
76
 
0150      h         Digraph: NL          0170       x       Vertical Bar (|)
77
 
0151      i         Digraph: VT          0171       y       Less/Equal (<_)
78
 
0152      j         Lower-right corner   0172       z       Grtr/Egual (>_)
79
 
0153      k         Upper-right corner   0173       {       Pi symbol
80
 
0154      l         Upper-left corner    0174       |       Not equal (=/)
81
 
0155      m         Lower-left corner    0175       }       UK pound symbol
82
 
0156      n         Crossing lines (+)   0176       ~       Centered dot
83
 
 
84
 
 
85
 
NOTE 1: Codes 0152-0156 and 0164-0170 are used to draw rectangular grids" each
86
 
piece of this set is contiguous with other so the lines formed will be
87
 
unbroken.
88
 
 
89
 
NOTE 2: Codes 0157-0163 give better vertical resolution than dashes and
90
 
underlines when drawing graphs; using these segments, 120 x 132 resolution may
91
 
be obtained in 132 column mode with the Advanced Video Option installed.
92
 
 
93
 
 
94
 
 
95
 
*****************************
96
 
* Terminal Control Commands *
97
 
*****************************
98
 
 
99
 
Control Characters
100
 
------------------
101
 
 
102
 
        The control characters recognized by the VT100 are listed below.  All
103
 
other control characters cause no action to be taken.
104
 
 
105
 
       Control characters (codes 00 - 037 inclusive) are specifically excluded
106
 
from the control sequence syntax, but may be embedded within a control
107
 
sequence.  Embedded control characters are executed as soon as they are
108
 
encountered by the VT100.  The processing of the control sequence then
109
 
continues with the next character recieved.  The exceptions are: if the <ESC>
110
 
character occurs, the current control sequence is aborted, and a new one
111
 
commences beginning with the <ESC> just recieved.  If the character <CAN>
112
 
(030) or the character <SUB> (032) occurs, the current control sequence is
113
 
aborted.  The ability to embed control characters allows the synchronization
114
 
characters XON and XOFF to be interpreted properly without affecting the
115
 
control sequence.
116
 
 
117
 
 
118
 
 
119
 
Control         Octal
120
 
Character       Code    Action Taken
121
 
------------------------------------------------------------------------------
122
 
<NUL>           0000    Ignored on input; not stored in buffer
123
 
<ENQ>           0005    Transmit ANSWERBACK message
124
 
<BEL>           0007    Sound bell
125
 
<BS>            0010    Move cursor to the left one position, unless it is at
126
 
                        the left margin, in which case no action is taken.
127
 
<HT>            0011    Move cursor to the next tab stop, or to the right
128
 
                        margin if no further tabs are set.
129
 
<LF>            0012    Causes either a line feed or new line operation (See
130
 
                        new line mode.)
131
 
<VT>            0013    Same as <LF>.
132
 
<FF>            0014    Same as <LF>.
133
 
<CR>            0015    Move the cursor to the left margin of the current line.
134
 
<SO>            0016    Invoke the G1 character set, as designated by the SCS
135
 
                        control sequence.
136
 
<SI>            0017    Invoke the G0 character set, as selected by the <ESC>(
137
 
                        sequence.
138
 
<DC1>           0021    Causes terminal to resume transmission (XON).
139
 
<DC3>           0023    Causes terminal to stop transmitting all codes except
140
 
                        XOFF and XON (XOFF).
141
 
<CAN>           0030    If sent during a control sequence, the sequence id
142
 
                        immediately terminated and not executed.  It also
143
 
                        causes the error character (checkerboard) to be
144
 
                        displayed.
145
 
<SUB>           0032    Same as <CAN>.
146
 
<ESC>           0033    Introduces a control sequence.
147
 
<DEL>           0177    Ignored on input; not stored in buffer.
148
 
 
149
 
 
150
 
        The VT100 is an upward and downward software-compatible terminal;
151
 
that is, previous Digital video terminals have Digital's private standards
152
 
for control sequences. The American National Standards Institute has since
153
 
standardized escape and control sequences in terminals in documents X3.41-1974
154
 
and X3.64-1977.
155
 
 
156
 
        The VT100 is compatible with both the previous Digital standard and
157
 
ANSI standards.  Customers may use existing Digital software designed around
158
 
the VT52 or new VT100 software.  The VT100 has a "VT52 compatible" mode in
159
 
which the VT100 responds to control sequences like a VT52.  In this mode, most
160
 
of the new VT100 features cannot be used.
161
 
 
162
 
        Throughout this document references will be made to "VT52 mode" or
163
 
"ANSI mode".  These two terms are used to indicate the VT100's software
164
 
compatibility.
165
 
 
166
 
 
167
 
NOTE: The ANSI standards allow the manufacturer flexibility in implementing
168
 
each function.  This document describes how the VT100 will respond to the
169
 
implemented ANSI central function.
170
 
 
171
 
NOTE: ANSI standards may be obtained by writing:
172
 
 
173
 
                American National Standards Institute
174
 
                         Sales Department
175
 
                          1430 Broadway
176
 
                       New York, NY, 10018
177
 
 
178
 
 
179
 
 
180
 
Definitions
181
 
-----------
182
 
 
183
 
        Control Sequence Introducer (CSI) - An escape sequence that provides
184
 
                supplementary controls and is itself a prefix affecting the
185
 
                interpretation of a limited number of contiguous characters.
186
 
                In the VT100, the CSI is: <ESC>[
187
 
 
188
 
        Parameter:  (1) A string of zero or more decimal characters which
189
 
                represent a single value.  Leading zeros are ignored.  The
190
 
                decimal characters have a range of 0 (060) to 9 (071).
191
 
                (2) The value so represented.
192
 
 
193
 
        Numeric Parameter:  A parameter that represents a number, designated by
194
 
                Pn.
195
 
 
196
 
        Selective Parameter:  A parameter that selects a subfunction from a
197
 
                specified set of subfunctions, designated by Ps.  In general, a
198
 
                control sequence with more than one selective parameter causes
199
 
                the same effect as several control sequences, each with one
200
 
                selective parameter, e.g., CSI Psa; Psb; Psc F is identical to
201
 
                CSI Psa F CSI Psb F CSI Psc F.
202
 
 
203
 
        Parameter String:  A string of parameters separated by a semicolon.
204
 
 
205
 
        Default: A function-dependent value that is assumed when no explicit
206
 
                value, or a value of 0, is specified.
207
 
 
208
 
        Final character:  A character whose bit combination terminates an
209
 
                escape or control sequence.
210
 
 
211
 
 
212
 
        EXAMPLE:  Control sequence to turn off all character attributes, then
213
 
        turn on underscore and blink attributes (SGR).  <ESC>[0;4;5m
214
 
 
215
 
                Sequence:
216
 
 
217
 
 
218
 
                       Delimiters
219
 
                          / \
220
 
                         /   \
221
 
                         |   |
222
 
                        \ / \ /
223
 
                <ESC>[ 0 ; 4 ; 5 m
224
 
                ^^^^^^ ^   ^   ^ ^
225
 
                |||||| |   |   | |
226
 
                \||||/  \  |  /  +------Final character
227
 
                 \||/    \ | /
228
 
                 CSI   Selective
229
 
                       Parameters
230
 
 
231
 
 
232
 
                The octal representation of this string is:
233
 
 
234
 
                        033 0133 060 073 064 073 065 0155
235
 
                      <ESC>   [   0   ;   4   ;   5    m
236
 
 
237
 
 
238
 
                Alternate sequences which will accomplish the same thing:
239
 
 
240
 
                        1) <ESC>[;4;m
241
 
 
242
 
                        2) <ESC>[m
243
 
                           <ESC>[4m
244
 
                           <ESC>[5m
245
 
 
246
 
                        3) <ESC>[0;04;005m
247
 
 
248
 
 
249
 
Control Sequences
250
 
-----------------
251
 
 
252
 
        All of the following control sequences are transmitted from the Host to
253
 
VT100 unless otherwise noted.  All of the control sequences are a subset of
254
 
those defined in ANSI X 3.64 1977 and ANSI X 3.41 1974.
255
 
 
256
 
        The following text conforms to these formatting conventions:
257
 
 
258
 
                1) Control characters are designated by angle brackets (e.g.
259
 
                        the Escape character is <ESC>).
260
 
 
261
 
                2) Parameters are indicated by curly braces.
262
 
 
263
 
                3) Parameter types usually are indicated as one of:
264
 
 
265
 
                        {Pn}    A string of digits representing a numerical
266
 
                                value.
267
 
 
268
 
                        {Ps}    A character that selects an item from a list.
269
 
 
270
 
                        {a-z}   Any lowercase sequence of one44 or more
271
 
                                characters in braces represent a value to be
272
 
                                entered (as in {Pn}), and the name in the
273
 
                                braces will be referred to in explanatory text.
274
 
 
275
 
                4) Spaces in the control sequence are present for clarity and
276
 
                        may be omitted.  Spaces which are required will be
277
 
                        surrounded by single quotes: ' '.
278
 
 
279
 
                5) All other characters are literals.
280
 
 
281
 
 
282
 
 
283
 
 
284
 
 
285
 
CPR     Cursor Position Report          VT100 to Host
286
 
 
287
 
        <ESC>[ {Pn} ; {Pn} R            Default Value: 1
288
 
 
289
 
        The CPR sequence reports the active position by means of the
290
 
        parameters.  This sequence has two parameter values, the first
291
 
        specifying the line and the second specifying the column.  The default
292
 
        condition with no parameters present, or parameters of 0, is equivelent
293
 
        to a cursor at home position.
294
 
 
295
 
        The numbering of the lines depends upon the state of the Origin Mode
296
 
        (DECOM).
297
 
 
298
 
        This control sequence is sent in reply to a device status report (DSR)
299
 
        command sent from the host.
300
 
 
301
 
 
302
 
 
303
 
CUB     Cursor Backward                 Host to VT100 & VT100 to Host
304
 
 
305
 
        <ESC>[ {Pn} D                   Default Value: 1
306
 
 
307
 
        The CUB sequence move the cursor to the left.  The distance moved is
308
 
        determined by the parameter.  If the parameter missing, zero, or one,
309
 
        the cursor is moved one position.  The cursor cannot be moved past the
310
 
        left margin.  Editor Function.
311
 
 
312
 
 
313
 
CUD     Cursor Down                     Host to VT100 & VT100 to Host
314
 
 
315
 
        <ESC>[ {Pn} B                   Default value: 1
316
 
 
317
 
        Moves the cursor down a number of lines as specified in the parameter
318
 
        without changing columns.  The cursor cannot be moved past the bottom
319
 
        margin.  Editor Function.
320
 
 
321
 
 
322
 
CUF     Cursor Foreward                 Host to VT100 & VT100 to Host
323
 
 
324
 
        <ESC>[ {Pn} C                   Default Value: 1
325
 
 
326
 
        The CUF sequence moves the cursor to the right a number of positions
327
 
        specified in the parameter.  The cursor cannot be moved past the right
328
 
        margin.  Editor Function.
329
 
 
330
 
 
331
 
CUP     Cursor Position
332
 
 
333
 
        <ESC>[ {Pn} ; {Pn} H            Default Value: 1
334
 
 
335
 
        The CUP sequence moves the curor to the position specified by the
336
 
        parameters.  The first parameter specifies the line, and the second
337
 
        specifies the column.  A value of zero for either line or column moves
338
 
        the cursor to the first line or column in the display.  The default
339
 
        string (<ESC>H) homes the cursor.  In the VT100, this command behaves
340
 
        identically to it's format effector counterpart, HVP.
341
 
 
342
 
        The numbering of the lines depends upon the state of the Origin Mode
343
 
        (DECOM).  Editor Function.
344
 
 
345
 
 
346
 
CUU     Cursor Up                       Host to VT100 & VT100 to Host
347
 
 
348
 
        <ESC>[ {Pn} A                   Default Value: 1
349
 
 
350
 
        Moves the cursor up without changing columns.  The cursor is moved up a
351
 
        number of lines as indicated by the parameter.  The cursor cannot be
352
 
        moved beyond the top margin.  Editor Function.
353
 
 
354
 
 
355
 
DA      Device Attributes               Host to VT100 & VT100 to Host
356
 
 
357
 
        <ESC>[ {Pn} c                   Default Value: 0
358
 
 
359
 
        1) The host requests the VT100 to send a DA sequence to indentify
360
 
           itself.  This is done by sending the DA sequence with no parameters,
361
 
           or with a parameter of zero.
362
 
 
363
 
        2) Response to the request described above (VT100 to host) is generated
364
 
           by the VT100 as a DA control sequencewith the numeric parameters as
365
 
           follows:
366
 
 
367
 
                Option Present                  Sequence Sent
368
 
                ---------------------------------------------
369
 
                No options                      <ESC>[?1;0c
370
 
                Processor Option (STP)          <ESC>[?1;1c
371
 
                Advanced Video Option (AVO)     <ESC>[?1;2c
372
 
                AVO and STP                     <ESC>[?1;3c
373
 
                Graphics Option (GPO)           <ESC>[?1;4c
374
 
                GPO and STP                     <ESC>[?1;5c
375
 
                GPO and AVO                     <ESC>[?1;6c
376
 
                GPO, ACO, and STP               <ESC>[?1;7c
377
 
 
378
 
<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>,
379
 
<<<I doubt if alot of these DEC commands work..a few do.. (like scroll areas)>>
380
 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
381
 
 
382
 
DECALN  Screen Alignment Display (DEC private)
383
 
 
384
 
        <ESC># 8
385
 
 
386
 
        This command causes the VT100 to fill it's screen with uppercase Es for
387
 
        screen focus and alignment.
388
 
 
389
 
 
390
 
DECANM  ANSI/VT52 Mode (DEC Private)
391
 
 
392
 
        This is a private parameter to the SM and RM control sequences.  The
393
 
        reset state causes only VT52 compatible escape sequences to be
394
 
        recognized.  The set state causes only ANSI compatible escape sequences
395
 
        to be recognized.  See the entries for MODES, SM, and RM.
396
 
 
397
 
 
398
 
DECARM  Auto Repeat Mode (DEC Private)
399
 
 
400
 
        This is a private parameter to the SM and RM control sequences.  The
401
 
        reset state causes no keyboard keys to auto-repeat, the set state
402
 
        causes most of them to.  See MODES, SM, and RM.
403
 
 
404
 
 
405
 
DECAWM  Autowrap Mode (DEC Private)
406
 
 
407
 
        This is a private parameter to the SM and RM control sequences.  The
408
 
        reset state prevents the cursor from moving when characters are
409
 
        recieved while at the right margin.  The set state causes these
410
 
        characters to advance to the next line, causing a scroll up if required
411
 
        and permitted.  See MODES, SM, and RM.
412
 
 
413
 
 
414
 
DECCKM  Cursor Keys Mode (DEC Private)
415
 
 
416
 
        This is a private parameter to the SM and RM control requences.  This
417
 
        mode is only effective when the terminal is in keypad application mode
418
 
        (DECPAM) and the ANSI/VT52 mode (DECANM) is set.  Under these
419
 
        conditions, if this mode is reset, the cursor keys will send ANSI
420
 
        cursor control commands.  If setm the cursor keys will send application
421
 
        function commands (See MODES, RM, and SM).
422
 
 
423
 
 
424
 
DECCOLM Column Mode (DEC Private)
425
 
 
426
 
        This is a private parameter to the SM and RM control sequences.  The
427
 
        reset state causes an 80 column screen to be used.  The set state
428
 
        causes a 132 column screen to be used.  See MODES, RM, and SM.
429
 
 
430
 
 
431
 
DECDHL  Double Height Line (DEC Private)
432
 
 
433
 
        Top Half:       <ESC>#3
434
 
        Bottom Half:    <ESC>#4
435
 
 
436
 
        These sequences cause the line containing the cursor to become the top
437
 
        or bottom half of a double-height, double width line.  The sequences
438
 
        should be used in pairs on adjacent lines with each line containing the
439
 
        same character string.  If the line was single width single height, all
440
 
        characters to the right of the center of the screen will be lost.  The
441
 
        cursor remains over the same character position, unless it would be to
442
 
        the right of the right margin, in which case it is moved to the right
443
 
        margin.
444
 
 
445
 
 
446
 
DECDWL  Double Width Line (DEC Private)
447
 
 
448
 
        <ESC>#6
449
 
 
450
 
        This causes the line that contains the cursor to become double-width
451
 
        single height.  If the line was single width, all characters ro the
452
 
        right of the center of the screen will be lost.  The cursor remains
453
 
        over the same character position, unless it would be to the right of
454
 
        the right margin, in which case it is moved to the right margin.
455
 
 
456
 
 
457
 
DECID   Identify Terminal (DEC Private)
458
 
 
459
 
        <ESC>Z
460
 
 
461
 
        This sequence causes the same response as the DA sequence.  This
462
 
        sequence will not be supported in future models.
463
 
 
464
 
 
465
 
DECINLM Interlace Mode (DEC Private)
466
 
 
467
 
        This is a private parameter to the RM and SM control sequences.  The
468
 
        reset state (non-interlace) causes the video processor to display 240
469
 
        scan lines per frame.  The set state causes the video processor to
470
 
        display 480 scan lines per screen.  See MODES, RM, and SM.
471
 
 
472
 
 
473
 
DECKPAM Keypad Application Mode (DEC Private)
474
 
 
475
 
        <ESC>=
476
 
 
477
 
        The auxiliary keypad keys will transmit control sequences.
478
 
 
479
 
 
480
 
DECKPNM Keypad Numeric Mode (DEC Private)
481
 
 
482
 
        <ESC> >
483
 
 
484
 
        The auxiliary keypad keys will send ASCII codes corresponding to the
485
 
        characters engraved on their keys.
486
 
 
487
 
 
488
 
DECLL   Load LEDs (DEC Private)
489
 
 
490
 
        <ESC>[ {Ps} q                           Default Value: 0
491
 
 
492
 
        Load the four programmable LEDs on the keyboard according to the
493
 
        prameter(s).
494
 
 
495
 
                Parameter       Meaning
496
 
                -----------------------
497
 
                    0           Clear All LEDs
498
 
                    1           Light L1
499
 
                    2           Light L2
500
 
                    3           Light L3
501
 
                    4           Light L4
502
 
 
503
 
 
504
 
DECOM   Origin Mode (DEC Private)
505
 
 
506
 
        This is a private parameter to SM and RM control sequences.  The reset
507
 
        state causes the origin (or home position) to be the upper left
508
 
        character position of the screen.  Line and column numbers are,
509
 
        therefore, independent of current margin settings.  The cursor may be
510
 
        positioned outside the margins with a cursor position (CUP) or
511
 
        horizontal and vertical position (HVP) control.
512
 
 
513
 
        The set state causes the origin to be at the upper left character
514
 
        position within the current margins.  Line and column numbers are,
515
 
        therefore, relative to the current margin settings.  The cursor cannot
516
 
        be positioned outside of the margins.
517
 
 
518
 
        The cursor is moved to the new home position when this mode is set or
519
 
        reset.  Lines and columns are numbered consecutively, with the origin
520
 
        being line 1, column 1.
521
 
 
522
 
 
523
 
DECRC   Restore Cursor (DEC Private)
524
 
 
525
 
        <ESC>8
526
 
 
527
 
        This sequence causes the previously saved cursor position, graphic
528
 
        rendition, and character set to be restored.
529
 
 
530
 
 
531
 
DECREPTPARM     Report Terminal Parameters      VT100 to Host
532
 
 
533
 
        <ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
534
 
 
535
 
        This sequence is generated by the VT100 to notify the host of the
536
 
        status of selected terminal parameters.  The status sequence may be
537
 
        sent when requested by the host (via DECREQTPARM) or at the terminal's
538
 
        discretion.  On power up or reset, the VT100 is inhibited from sending
539
 
        unsolicited reports.
540
 
 
541
 
        The meanings of the sequence paramters are:
542
 
 
543
 
        Parameter       Value   Meaning
544
 
        ------------------------------------------------------------------
545
 
          {sol}           1     This message is a report.
546
 
                          2     This message is a report, and the terminal is
547
 
                                only reporting on request.
548
 
 
549
 
          {par}           1     No parity set
550
 
                          4     Parity set and odd
551
 
                          5     Parity set and even
552
 
 
553
 
         {nbits}          1     8 bits per character
554
 
                          2     7 bits per character
555
 
 
556
 
         {xspd}           0     Speed set to 50 bps
557
 
         -and-            8     Speed set to 75 bps
558
 
         {rspd}          16     Speed set to 110 bps
559
 
                         24     Speed set to 134.5 bps
560
 
         {xspd}=         32     Speed set to 150 bps
561
 
          Transmit       40     Speed set to 200 bps
562
 
          Speed          48     Speed set to 300 bps
563
 
                         56     Speed set to 600 bps
564
 
         {rspd}=         64     Speed set to 1200 bps
565
 
          Recieve        72     Speed set to 1800 bps
566
 
          Speed          80     Speed set to 2000 bps
567
 
                         88     Speed set to 2400 bps
568
 
                         96     Speed set to 3600 bps
569
 
                        104     Speed set to 4800 bps
570
 
                        112     Speed set to 9600 bps
571
 
                        120     Speed set tp 19200 bps
572
 
 
573
 
        {cmul}            1     The bit rate multiplier is 16
574
 
 
575
 
        {flags}        0-15     This value communicates the four switch values
576
 
                                in block 5 of SET-UP B, which are only visible
577
 
                                to the user when an STP option is installed.
578
 
 
579
 
 
580
 
DECREQTPARM     Request Terminal Parameters
581
 
 
582
 
        <ESC>[ {Ps} x
583
 
 
584
 
        The host sends this sequence to request the VT100 to send a DECREPTPARM
585
 
        sequence back.  {Ps} can be either 0 or 1.  If 0, the terminal will be
586
 
        allowed to send unsolicited DECREPTPARMs.  These reports will be
587
 
        generated each time the terminal exits the SET-UP mode.  If {Ps} is 1,
588
 
        then the terminal will only generate DECREPTPARMs in response to a
589
 
        request.
590
 
 
591
 
 
592
 
DECSC   Save Cursor (DEC Private)
593
 
 
594
 
        <ESC>7
595
 
 
596
 
        Causes the cursor position, graphic rendition, and character set to be
597
 
        saved.  (See DECRC)
598
 
 
599
 
 
600
 
DECSCLM Scrolling Mode (DEC Private)
601
 
 
602
 
        This is a private parameter to RM and SM control sequences.  The reset
603
 
        state causes scrolls to "jump" instantaneuously one line at a time.
604
 
        The set state causes the scrolls to be "smooth", and scrolls at a
605
 
        maximum rate of siz lines/sec.  See MODES, RM, and SM.
606
 
 
607
 
 
608
 
DECSCNM Screen Mode (DEC Private)
609
 
 
610
 
        This is a private parameter to RM and SM control sequences.  The reset
611
 
        state causes the screen to be black with white characters; the set
612
 
        state causes the screen to be white with black characters.  See MODES,
613
 
        RM, and SM.
614
 
 
615
 
<<<<This one works...and is very handy! >>>>
616
 
DECSTBM Set Top and Bottom Margins (DEC Private)
617
 
 
618
 
        <ESC>[ {Pn} ; {Pn} r                    Default Values: See Below
619
 
 
620
 
        This sequence sets the top and bottom margins to define the scrolling
621
 
        region.  The first parameter is the line number of the first line in
622
 
        the scrolling region; the second parameter is the line number of the
623
 
        bottom line of the scrolling region.  Default is the entire screen (no
624
 
        margins).  The minimum region allowed is two lines, i.e., the top line
625
 
        must be less than the bottom.  The cursor is placed in the home
626
 
        position (See DECOM).
627
 
 
628
 
 
629
 
DECSWL  Single-width Line (DEC Private)
630
 
 
631
 
        <ESC>#5
632
 
 
633
 
        This causes the line which contains the cursor to become single-width,
634
 
        single-height.  The cursor remains on the same character position.
635
 
        This is the default condition for all new lines on the screen.
636
 
 
637
 
 
638
 
DECTST  Invoke Confidence Test
639
 
 
640
 
        <ESC>[ 2 ; {Ps} y
641
 
 
642
 
        Ps is the parameter indicating the test to be done.  It is computed by
643
 
        taking the weight indicated for each desired test and adding them
644
 
        together.  If Ps is 0, no test is performed but the VT100 is reset.
645
 
 
646
 
        Test                                                    Weight
647
 
        --------------------------------------------------------------
648
 
        POST (ROM checksum, RAM NVR, keyboardm and AVO)           1
649
 
        Data Loop Back (Loopback connector required)              2
650
 
        EIA Modem Control Test (Loopback connector req.)          4
651
 
        Repeat Testing until failure                              8
652
 
 
653
 
 
654
 
DSR     Device Status Report            Host to VT100 & VT100 to Host
655
 
 
656
 
        <ESC>[ {Ps} n
657
 
 
658
 
        Requests and reports the general status of the VT100 according to the
659
 
        following parameters:
660
 
 
661
 
        Parameter       Meaning
662
 
        ---------------------------------------------------------------
663
 
           0            Response from VT100 - Ready, no faults detected
664
 
           3            Response from VT100 - Malfunction Detected
665
 
           5            Command from host - Report Status (using a DSR control
666
 
                        sequence)
667
 
           6            Command from host - Report Active Position (using a CPR
668
 
                        sequence)
669
 
 
670
 
        DSR with a parameter of 0 or 3 is always sent as a response to a
671
 
        requesting DSR with a parameter of 5.
672
 
 
673
 
 
674
 
ED      Erase in Display
675
 
 
676
 
        <ESC>[ {Ps} J                                   Default: 0
677
 
 
678
 
        This sequence erases some or all of the characters in the display
679
 
        according to the parameter.  Any complete line erased by this sequence
680
 
        will return that line to single width mode.  Editor Function.
681
 
 
682
 
        Parameter       Meaning
683
 
        ----------------------------------------------------------------
684
 
            0           Erase from the cursor to the end of the screen.
685
 
            1           Erase from the start of the screen to the cursor.
686
 
            2           Erase the entire screen.
687
 
 
688
 
 
689
 
EL      Erase in Line
690
 
 
691
 
        <ESC>[ {Ps} K                                   Default: 0
692
 
 
693
 
        Erases some or all characters in the active line, according to the
694
 
        parameter.  Editor Function.
695
 
 
696
 
        Parameter       Meaning
697
 
        ---------------------------------------------------------------
698
 
            0           Erase from cursor to the end of the line.
699
 
            1           Erase from the start of the line to the cursor.
700
 
            2           Erase the entire line.
701
 
 
702
 
 
703
 
HTS     Horizontal Tab Set
704
 
 
705
 
        <ESC>H
706
 
 
707
 
        Set a tab stop at the current cursor position.  Format Effector.
708
 
 
709
 
 
710
 
HVP     Horizontal and Vertical Position
711
 
 
712
 
        <ESC>[ {Pn} ; {Pn} f
713
 
 
714
 
        Moves the cursor to the position specified by the parameters.  The
715
 
        first parameter specifies the line, and the second specifies the
716
 
        column.  A parameter of 0 or 1 causes the active position to move to
717
 
        the first line or column in the display.  In the VT100, this control
718
 
        behaves identically with it's editor counterpart, CUP.  The numbering
719
 
        of hte lines depends upon the state of the Origin Mode (DECOM).  Format
720
 
        Effector.
721
 
 
722
 
 
723
 
IND     Index
724
 
 
725
 
        <ESC>D
726
 
 
727
 
        This sequence causes the cursor to move downward one line without
728
 
        changing the column.  If the cursor is at the bottom margin, a scroll
729
 
        up is performed.  Format Effector.
730
 
 
731
 
 
732
 
LNM     Line Feed/New Line Mode
733
 
 
734
 
        This is a parameter to SM and RM control sequences.  The reset state
735
 
        causes the interpretation of the <LF> character to imply only vertical
736
 
        movement of the cursor and causes the RETURN key to send the single
737
 
        code <CR>.  The set state causes the <LF> character to imply movement
738
 
        to the first position of the following line, and causes the RETURN key
739
 
        to send the code pair <CR><LF>.  This is the New Line option.
740
 
 
741
 
        This mode does not affect the Index (IND) or the next line (NEL) format
742
 
        effectors.
743
 
 
744
 
 
745
 
MODES   The Following is a list of VT100 modes which may be changed with Set
746
 
        Mode (SM) and Reset Mode (RM) controls.
747
 
 
748
 
        ANSI Specified Modes
749
 
 
750
 
        Parameter       Mnemonic        Function
751
 
        ------------------------------------------------------------------
752
 
            0                           Error (Ignored)
753
 
           20             LNM           Line Feed/New Line Mode
754
 
 
755
 
 
756
 
        DEC Private Modes
757
 
 
758
 
        If the first character in the parameter string is ? (077), the
759
 
        parameters are interpreted as DEC private parameters according to the
760
 
        following:
761
 
 
762
 
        Parameter       Mnemonic        Function
763
 
        -------------------------------------------------------------------
764
 
            0                           Error (Ignored)
765
 
            1            DECCKM         Cursor Key
766
 
            2            DECANM         ANSI/VT52
767
 
            3            DECCOLM        Column
768
 
            4            DECSCLM        Scrolling
769
 
            5            DECSCNM        Screen
770
 
            6            DECOM          Origin
771
 
            7            DECAWM         Auto Wrap
772
 
            8            DECARM         Auto Repeat
773
 
            9            DECINLM        Interlace
774
 
 
775
 
        Any other parameter values are ignored.
776
 
 
777
 
        The following modes, which are specified in the ANSI standard, may be
778
 
        considered to be permanently set, permanently reset, or not applicable,
779
 
        as noted.
780
 
 
781
 
        Mnemonic        Function                        State
782
 
        ------------------------------------------------------
783
 
        CRM             Control Representation          Reset
784
 
        EBM             Editing Boundary                Reset
785
 
        ERM             Erasure                         Set
786
 
        FEAM            Format Effector Action          Reset
787
 
        FETM            Format Effector Transfer        Reset
788
 
        GATM            Guarded Area Transfer           NA
789
 
        HEM             Horizontal Editing              NA
790
 
        IRM             Insertion-replacement           Reset
791
 
        KAM             Keyboard Action                 Reset
792
 
        MATM            Multiple area transfer          NA
793
 
        PUM             Positioning Unit                Reset
794
 
        SATM            Selected Area Transfer          NA
795
 
        SRTM            Status Reporting Transfer       Reset
796
 
        TSM             Tabulation Stop                 Reset
797
 
        TTM             Transfer Termination            NA
798
 
        VEM             Vertical Editing                NA
799
 
 
800
 
 
801
 
NEL     Next Line
802
 
 
803
 
        <ESC>E
804
 
 
805
 
        This causes the cursor to move to the first position of the next line
806
 
        down.  If the cursor is on the bottom line, a scroll is performed.
807
 
        Format Effector.
808
 
 
809
 
 
810
 
RI      Reverse Index
811
 
 
812
 
        <ESC>M
813
 
 
814
 
        Move the cursor up one line without changing columns.  If the cursor is
815
 
        on the top line, a scroll down is performed.
816
 
 
817
 
 
818
 
RIS     Reset to Initial State
819
 
 
820
 
        <ESC>c
821
 
 
822
 
        Resets the VT100 to the state is has upon power up.  This also causes
823
 
        the execution of the POST and signal INT H to be asserted briefly.
824
 
 
825
 
 
826
 
RM      Reset Mode
827
 
 
828
 
        <ESC>[ {Ps} ; {Ps} l
829
 
 
830
 
        Resets one or more VT100 modes as specified by each selective parameter
831
 
        in the parameter string.  Each mode to be reset is specified by a
832
 
        separate parameter.  See MODES and SM.
833
 
 
834
 
 
835
 
SCS     Select Character Set
836
 
 
837
 
        The appropriate D0 and G1 character sets are designated from one of the
838
 
        five possible sets.  The G0 and G1 sets are invokedd by the characters
839
 
        <SI> and <SO>, respectively.
840
 
 
841
 
        G0 Sets         G1 Sets
842
 
        Sequence        Sequence        Meaning
843
 
        ------------------------------------------------------------------
844
 
        <ESC>(A         <ESC>)A         United Kingdom Set
845
 
        <ESC>(B         <ESC>)B         ASCII Set
846
 
        <ESC>(0         <ESC>)0         Special Graphics
847
 
        <ESC>(1         <ESC>)1         Alternate Character ROM
848
 
                                        Standard Character Set
849
 
        <ESC>(2         <ESC>)2         Alternate Character ROM
850
 
                                        Special Graphics
851
 
 
852
 
        The United Kingdom and ASCII sets conform to the "ISO international
853
 
        register of character sets to be used with escape sequences".  The
854
 
        other sets are private character sets.  Special graphics means that the
855
 
        graphic characters fpr the codes 0137 to 0176 are replaced with other
856
 
        characters.  The specified character set will be used until another SCS
857
 
        is recieved.
858
 
 
859
 
 
860
 
SGR     Select Graphic Rendition
861
 
 
862
 
        <ESC>[ {Ps} ; {Ps} m
863
 
 
864
 
        Invoke the graphic rendition specified by the parameter(s).  All
865
 
        following characters transmitted to the VT100 are rendered according
866
 
        to the parameter(s) until the next occurrence of an SGR.  Format
867
 
        Effector.
868
 
 
869
 
        Parameter       Meaning
870
 
        ---------------------------------------------------------------
871
 
            0           Attributes Off
872
 
            1           Bold or increased intensity
873
 
            4           Underscore
874
 
            5           Blink
875
 
            7           Negative (reverse) image
876
 
 
877
 
        All other parameter values are ignored.
878
 
 
879
 
        Without the Advanced Video Option, only one type of character attribute
880
 
        is possible, as determined by the cursor selection; in that case
881
 
        specifying either underscore or reverse will activate the currently
882
 
        selected attribute.
883
 
 
884
 
 
885
 
SM      Set Mode
886
 
 
887
 
        <ESC> [ {Ps} ; {Ps} h
888
 
 
889
 
        Causes one or more modes to be set within the VT100 as specified by
890
 
        each selective parameter string.  Each mode to be set is specified by a
891
 
        seperate parameter.  A mode is considered set until it is reset by a
892
 
        Reset Mode (RM) control sequence.  See RM and MODES.
893
 
 
894
 
        [Editor's note: The original DEC VT100 documentation EK-VT100-UG-003
895
 
        erroneously omitted the "[" character from the SM sequence.]
896
 
 
897
 
 
898
 
TBC     Tabulation Clear
899
 
 
900
 
        <ESC>[ {Ps} g
901
 
 
902
 
        If the parameter is missing or 0, this will clear the tab stop at the
903
 
        cursor's position.  If it is 3, this will clear all of the tab stops.
904
 
        Any other parameter is ignored.  Format Effector.
905
 
 
906
 
 
907
 
 
908
 
  ___
909
 
 ( /_)_---_-------------------------------------------------
910
 
(_/  ( ! / )   Petri Virekoski ------ pev@vipu.hut.fi ------
911
 
-------!/---------------------------------------------------
912
 
 
913
 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
914
 
 
915
 
Article 4247 of comp.terminals:
916
 
Path: cs.utk.edu!willis.cis.uab.edu!news.ecn.bgu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!news.sprintlink.net!uunet!news.aurora.net!netnews
917
 
From: msimms@kea.bc.ca (Michael Simms)
918
 
Newsgroups: comp.terminals
919
 
Subject: Re: VT420 control sequence question
920
 
Date: 15 Jun 1995 01:23:10 GMT
921
 
Organization: Attachmate Canada
922
 
Lines: 39
923
 
Distribution: world
924
 
Message-ID: <3ro21u$559@angate.disc-net.com>
925
 
References: <3rnlcd$pg8@senator-bedfellow.MIT.EDU>
926
 
NNTP-Posting-Host: 204.174.235.139
927
 
X-Newsreader: WinVN 0.92.5
928
 
 
929
 
In article <3rnlcd$pg8@senator-bedfellow.MIT.EDU>, igorlord@mit.edu (Igor Lyubashevskiy) says:
930
 
>
931
 
>Hi, while reading through DEC's VT420 manuals, I enountered a control sequence
932
 
>that I don't understand. That is "Change attributes in rectangular area" 
933
 
>(DECCARA).
934
 
>
935
 
>The manual says that this sequence's "syntax" is
936
 
>        CSI Pt;Pl;Pb;Pr;Ps1..Psn $ r
937
 
>Where Psn = visual character attributes.
938
 
>
939
 
>Does anyone know what Psn really is (what those visual character attributes
940
 
>are)?  And how many of those Psn can be there?
941
 
>If you can help, please reply either by email or by a followup to this group.
942
 
>
943
 
>Thank you for your time,
944
 
>
945
 
>Igor
946
 
>
947
 
 
948
 
The Ps1..Psn are the standard character attributes such as used with
949
 
CSIm (SGR). The values they can hold are:
950
 
 
951
 
0 - reset all attributes (white on black)
952
 
1 - bold
953
 
4 - underline
954
 
5 - blink
955
 
7 - inverse
956
 
21 - bold off
957
 
24 - underline off
958
 
25 - blink off
959
 
27 - inverse off
960
 
 
961
 
For example to turn all the characters in the top left quadrant of the
962
 
screen bold and inverse with no blinking (as I hate blinking) use:
963
 
     CSI 1;1;40;12;1;7;25$r
964
 
 
965
 
As to the number of parameters, I don't know.
966
 
 
967
 
Michael Simms.
968
 
 
969
 
 
970
 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=