2
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4
This information is largely derived from DEC document EK-VT100-UG-003,
5
the original manual for the VT100.
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.
13
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
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
25
Message-ID: <26sh5a$oct@nntp.hut.fi>
26
NNTP-Posting-Host: lk-hp-14.hut.fi
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...
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.
42
[The notation <ESC> denotes a single ASCII Escape character, 1Bx.]
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
54
*******************************
55
* Special Graphics Characters *
56
*******************************
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).
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
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
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.
95
*****************************
96
* Terminal Control Commands *
97
*****************************
102
The control characters recognized by the VT100 are listed below. All
103
other control characters cause no action to be taken.
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
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
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
136
<SI> 0017 Invoke the G0 character set, as selected by the <ESC>(
138
<DC1> 0021 Causes terminal to resume transmission (XON).
139
<DC3> 0023 Causes terminal to stop transmitting all codes except
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
145
<SUB> 0032 Same as <CAN>.
146
<ESC> 0033 Introduces a control sequence.
147
<DEL> 0177 Ignored on input; not stored in buffer.
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
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.
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
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.
171
NOTE: ANSI standards may be obtained by writing:
173
American National Standards Institute
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>[
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.
193
Numeric Parameter: A parameter that represents a number, designated by
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.
203
Parameter String: A string of parameters separated by a semicolon.
205
Default: A function-dependent value that is assumed when no explicit
206
value, or a value of 0, is specified.
208
Final character: A character whose bit combination terminates an
209
escape or control sequence.
212
EXAMPLE: Control sequence to turn off all character attributes, then
213
turn on underscore and blink attributes (SGR). <ESC>[0;4;5m
226
\||||/ \ | / +------Final character
232
The octal representation of this string is:
234
033 0133 060 073 064 073 065 0155
238
Alternate sequences which will accomplish the same thing:
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.
256
The following text conforms to these formatting conventions:
258
1) Control characters are designated by angle brackets (e.g.
259
the Escape character is <ESC>).
261
2) Parameters are indicated by curly braces.
263
3) Parameter types usually are indicated as one of:
265
{Pn} A string of digits representing a numerical
268
{Ps} A character that selects an item from a list.
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.
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: ' '.
279
5) All other characters are literals.
285
CPR Cursor Position Report VT100 to Host
287
<ESC>[ {Pn} ; {Pn} R Default Value: 1
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.
295
The numbering of the lines depends upon the state of the Origin Mode
298
This control sequence is sent in reply to a device status report (DSR)
299
command sent from the host.
303
CUB Cursor Backward Host to VT100 & VT100 to Host
305
<ESC>[ {Pn} D Default Value: 1
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.
313
CUD Cursor Down Host to VT100 & VT100 to Host
315
<ESC>[ {Pn} B Default value: 1
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.
322
CUF Cursor Foreward Host to VT100 & VT100 to Host
324
<ESC>[ {Pn} C Default Value: 1
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.
333
<ESC>[ {Pn} ; {Pn} H Default Value: 1
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.
342
The numbering of the lines depends upon the state of the Origin Mode
343
(DECOM). Editor Function.
346
CUU Cursor Up Host to VT100 & VT100 to Host
348
<ESC>[ {Pn} A Default Value: 1
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.
355
DA Device Attributes Host to VT100 & VT100 to Host
357
<ESC>[ {Pn} c Default Value: 0
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.
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
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
378
<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>,
379
<<<I doubt if alot of these DEC commands work..a few do.. (like scroll areas)>>
380
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
382
DECALN Screen Alignment Display (DEC private)
386
This command causes the VT100 to fill it's screen with uppercase Es for
387
screen focus and alignment.
390
DECANM ANSI/VT52 Mode (DEC Private)
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.
398
DECARM Auto Repeat Mode (DEC Private)
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.
405
DECAWM Autowrap Mode (DEC Private)
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.
414
DECCKM Cursor Keys Mode (DEC Private)
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).
424
DECCOLM Column Mode (DEC Private)
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.
431
DECDHL Double Height Line (DEC Private)
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
446
DECDWL Double Width Line (DEC Private)
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.
457
DECID Identify Terminal (DEC Private)
461
This sequence causes the same response as the DA sequence. This
462
sequence will not be supported in future models.
465
DECINLM Interlace Mode (DEC Private)
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.
473
DECKPAM Keypad Application Mode (DEC Private)
477
The auxiliary keypad keys will transmit control sequences.
480
DECKPNM Keypad Numeric Mode (DEC Private)
484
The auxiliary keypad keys will send ASCII codes corresponding to the
485
characters engraved on their keys.
488
DECLL Load LEDs (DEC Private)
490
<ESC>[ {Ps} q Default Value: 0
492
Load the four programmable LEDs on the keyboard according to the
496
-----------------------
504
DECOM Origin Mode (DEC Private)
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.
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.
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.
523
DECRC Restore Cursor (DEC Private)
527
This sequence causes the previously saved cursor position, graphic
528
rendition, and character set to be restored.
531
DECREPTPARM Report Terminal Parameters VT100 to Host
533
<ESC>[ {sol} ; {par} ; {nbits} ; {xspd} ; {rspd} ; {cmul} ; {flags} x
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
541
The meanings of the sequence paramters are:
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.
549
{par} 1 No parity set
551
5 Parity set and even
553
{nbits} 1 8 bits per character
554
2 7 bits per character
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
573
{cmul} 1 The bit rate multiplier is 16
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.
580
DECREQTPARM Request Terminal Parameters
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
592
DECSC Save Cursor (DEC Private)
596
Causes the cursor position, graphic rendition, and character set to be
600
DECSCLM Scrolling Mode (DEC Private)
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.
608
DECSCNM Screen Mode (DEC Private)
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,
615
<<<<This one works...and is very handy! >>>>
616
DECSTBM Set Top and Bottom Margins (DEC Private)
618
<ESC>[ {Pn} ; {Pn} r Default Values: See Below
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).
629
DECSWL Single-width Line (DEC Private)
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.
638
DECTST Invoke Confidence Test
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.
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
654
DSR Device Status Report Host to VT100 & VT100 to Host
658
Requests and reports the general status of the VT100 according to the
659
following parameters:
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
667
6 Command from host - Report Active Position (using a CPR
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.
676
<ESC>[ {Ps} J Default: 0
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.
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.
691
<ESC>[ {Ps} K Default: 0
693
Erases some or all characters in the active line, according to the
694
parameter. Editor Function.
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.
703
HTS Horizontal Tab Set
707
Set a tab stop at the current cursor position. Format Effector.
710
HVP Horizontal and Vertical Position
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
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.
732
LNM Line Feed/New Line Mode
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.
741
This mode does not affect the Index (IND) or the next line (NEL) format
745
MODES The Following is a list of VT100 modes which may be changed with Set
746
Mode (SM) and Reset Mode (RM) controls.
750
Parameter Mnemonic Function
751
------------------------------------------------------------------
753
20 LNM Line Feed/New Line Mode
758
If the first character in the parameter string is ? (077), the
759
parameters are interpreted as DEC private parameters according to the
762
Parameter Mnemonic Function
763
-------------------------------------------------------------------
775
Any other parameter values are ignored.
777
The following modes, which are specified in the ANSI standard, may be
778
considered to be permanently set, permanently reset, or not applicable,
781
Mnemonic Function State
782
------------------------------------------------------
783
CRM Control Representation Reset
784
EBM Editing Boundary Reset
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
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.
814
Move the cursor up one line without changing columns. If the cursor is
815
on the top line, a scroll down is performed.
818
RIS Reset to Initial State
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.
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.
835
SCS Select Character Set
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.
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
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
860
SGR Select Graphic Rendition
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
870
---------------------------------------------------------------
872
1 Bold or increased intensity
875
7 Negative (reverse) image
877
All other parameter values are ignored.
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
887
<ESC> [ {Ps} ; {Ps} h
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.
894
[Editor's note: The original DEC VT100 documentation EK-VT100-UG-003
895
erroneously omitted the "[" character from the SM sequence.]
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.
909
( /_)_---_-------------------------------------------------
910
(_/ ( ! / ) Petri Virekoski ------ pev@vipu.hut.fi ------
911
-------!/---------------------------------------------------
913
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
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
929
In article <3rnlcd$pg8@senator-bedfellow.MIT.EDU>, igorlord@mit.edu (Igor Lyubashevskiy) says:
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"
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.
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.
943
>Thank you for your time,
948
The Ps1..Psn are the standard character attributes such as used with
949
CSIm (SGR). The values they can hold are:
951
0 - reset all attributes (white on black)
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
965
As to the number of parameters, I don't know.
970
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=