From 4163308ecae26c76d22e4cc80d8bae729b06b94f Mon Sep 17 00:00:00 2001 From: james <> Date: Sun, 3 Feb 2008 16:20:24 +0000 Subject: *** empty log message *** --- DOCS/vt102-ug/appendixc.html | 1331 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1331 insertions(+) create mode 100644 DOCS/vt102-ug/appendixc.html (limited to 'DOCS/vt102-ug/appendixc.html') diff --git a/DOCS/vt102-ug/appendixc.html b/DOCS/vt102-ug/appendixc.html new file mode 100644 index 0000000..69c4823 --- /dev/null +++ b/DOCS/vt102-ug/appendixc.html @@ -0,0 +1,1331 @@ + + + +VT100.net: Digital VT102 User Guide + + + + +

C Programming Summary

+

General

+

This appendix provides a summary of VT102 escape and control sequences.

+

Figure C-1 shows the codes generated by the standard keys. Figure C-2 +shows the control codes generated by the function keys; shaded keys do +not need CTRL down to generate the control character.

+

Programming Sequences

+

The rest of this appendix repeats the information on the VT102 Programming +Reference Card (EK-VT102-RC-001).

+

Control Characters Received

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameCharacter MnemonicOctal CodeFunction
NullNUL000Ignored when received (not stored in input buffer) and used as a fill character.
End of textETX003Can be selected as a half-duplex turnaround character.
End of transmissionEOT004Can be selected as a disconnect character or half-duplex turnaround character. When used as a turnaround +character, the disconnect character is DLE-EOT.
EnquireENQ005Transmits answerback message.
BellBEL007Generates bell tone.
BackspaceBS010Moves cursor to the left one character position; if cursor is at left margin, +no action occurs.
Horizontal tabHT011Moves cursor to next tab stop, or to right margin if there are no more tab stops.
LinefeedLF012Causes a linefeed or a new line operation. (See Linefeed/New Line mode). Also causes +printing if auto print operation selected.
Vertical tabVT013Processed as LF.
Form feedFF014Processed as LF. FF can also be selected as a half-duplex turnaround character.
Carriage returnCR015Moves cursor to left margin on current line. CR can also be selected as a half-duplex +turnaround character.
Shift outSO016Selects G1 character set designated by a select character set sequence.
Shift inSI017Selects G0 character set designated by a select character set sequence.
Device control 1DC1021Processed as XON. DC1 causes terminal to continue transmitting characters.
Device control 3DC3023Processed as XOFF. DC3 causes terminal to stop transmitting all characters except +XOFF and XON. DC3 can also be selected as a half-duplex turnaround character.
CancelCAN030If received during an escape or control sequence, cancels the sequence and displays +substitution character ([]).
SubstituteSUB032Processed as CAN.
EscapeESC033Processed as a sequence introducer.
+

ANSI Compatible Sequences

+

Set Mode

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicModeSequence
Keyboard actionKAMLockedESC [ 2 h
Insertion-replacementIRMInsertESC [ 4 h
Send-receiveSRMOffESC [ 1 2 h
Linefeed/new lineLMNNew lineESC [ 2 0 h
Cursor keyDECCKMApplicationESC [ ? 1 h
ANSI/VT52DECANMANSIN/A
ColumnDECCOLM132 columnESC [ ? 3 h
ScrollingDECSCLMSmoothESC [ ? 4 h
ScreenDECSCNMReverseESC [ ? 5 h
OriginDECOMRelativeESC [ ? 6 h
Auto wrapDECAWMOnESC [ ? 7 h
Auto repeatDECARMOnESC [ ? 8 h
Print form feedDECPFFOnESC [ ? 1 8 h
Print extentDECPEXFull screenESC [ ? 1 9 h
+

Reset Mode

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicModeSequence*
Keyboard actionKAMUnlockedESC [ 2 l
Insertion-replacementIRMReplaceESC [ 4 l
Send-receiveSRMOnESC [ 1 2 l
Linefeed/new lineLMNLinefeedESC [ 2 0 l
Cursor keyDECCKMCursorESC [ ? 1 l
ANSI/VT52DECANMVT52ESC [ ? 2 l
ColumnDECCOLM80 columnESC [ ? 3 l
ScrollingDECSCLMJumpESC [ ? 4 l
ScreenDECSCNMNormalESC [ ? 5 l
OriginDECOMAbsoluteESC [ ? 6 l
Auto wrapDECAWMOffESC [ ? 7 l
Auto repeatDECARMOffESC [ ? 8 l
Print form feedDECPFFOffESC [ ? 1 8 l
Print extentDECPEXScrolling regionESC [ ? 1 9 l
* The last character of the sequence is lowercase L (1548)
+

Cursor Key Codes Generated

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Cursor Key (Arrow)ANSI Characters Generated
Reset (Cursor)Set (Application)
UpESC [ AESC O A
DownESC [ BESC O B
RightESC [ CESC O C
LeftESC [ DESC O D
+

Keypad Character Selection

+ + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
AlternateDECKPAMESC =
NumericDECKPNMESC >
+

Keypad Codes Generated

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
KeyVT52 Numeric Keypad ModeVT52 Alternate Keypad ModeANSI Numeric Keypad ModeANSI Alternate Keypad Mode
00ESC ? p0ESC O p
11ESC ? q1ESC O q
22ESC ? r2ESC O r
33ESC ? s3ESC O s
44ESC ? t4ESC O t
55ESC ? u5ESC O u
66ESC ? v6ESC O v
77ESC ? w7ESC O w
88ESC ? x8ESC O x
99ESC ? y9ESC O y
- (minus)- (minus)ESC ? m- (minus)ESC O m
, (comma), (comma)ESC ? l*, (comma)ESC O l*
. (period). (period)ESC ? n. (period)ESC O n
ENTERSame as RETURNESC ? MSame as RETURNESC O M
PF1ESC PESC PESC O PESC O P
PF2ESC QESC QESC O QESC O Q
PF3ESC RESC RESC O RESC O R
PF4ESC SESC SESC O SESC O S
* The last character of the sequence is lowercase L (1548)
+

Select Character Sets SCS

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Character SetG0 DesignatorG1 Designator
United Kingdom (UK)ESC ( AESC ) A
United States (US)ESC ( BESC ) B
Special characters and line drawing setESC ( 0ESC ) 0
Alternate character ROMESC ( 1ESC ) 1
Alternate character ROM - special charactersESC ( 2ESC ) 2
+ + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Single shift 2SS2ESC N
Single shift 3SS3ESC O
+

Character Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Select graphic rendition (no attributes)SGRESC [ m
Select graphic rendition (no attributes)SGRESC [ 0 m
Select graphic rendition (select attribute bold)SGRESC [ 1 m
Select graphic rendition (select attribute underline)SGRESC [ 4 m
Select graphic rendition (select attribute blink)SGRESC [ 5 m
Select graphic rendition (select attribute, reverse video)SGRESC [ 7 m
+

Scrolling Region

+ + + + + + + + + + + + + + + +
NameMnemonicSequence
Set top and bottom marginsDECSTBMESC [ Pt ; Pb r
+

Cursor Movement Commands

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Cursor upCUUESC [ Pn A
Cursor downCUDESC [ Pn B
Cursor forward (right)CUFESC [ Pn C
Cursor backward (left)CUBESC [ Pn D
Cursor positionCUPESC [ Pl ; Pc H
Cursor position (home)CUPESC [ H
Horizontal and vertical positionHVPESC [ Pl ; Pc f
Horizontal and vertical position (home)HVPESC [ f
IndexINDESC D
Reverse indexRIESC M
Next lineNELESC E
Save cursor (and attributes)DECSCESC 7
Restore cursor (and attributes)DECRCESC 8
+

Tab Stops

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Horizontal tab set (at current column)HTSESC H
Tabulation clear (at current column)TBCESC [ g
Tabulation clear (at current column)TBCESC [ 0 g
Tabulation clear (all tabs)TBCESC [ 3 g
+

Line Attributes

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Double-height top halfDECDHLESC # 3
Double-height bottom halfDECDHLESC # 4
Single-width single-heightDECSWLESC # 5
Double-width single-heightDECDWLESC # 6
+

Erasing

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Erase in line (cursor to end of line)ELESC [ K
Erase in line (cursor to end of line)ELESC [ 0 K
Erase in line (beginning of line to cursor)ELESC [ 1 K
Erase in line (entire line containing cursor)ELESC [ 2 K
Erase in display (cursor to end of screen)EDESC [ J
Erase in display (cursor to end of screen)EDESC [ 0 J
Erase in display (beginning of screen to cursor)EDESC [ 1 J
Erase in display (entire screen)EDESC [ 2 J
+

Editing Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Delete characterDCHESC [ Pn P
Insert lineILESC [ Pn L
Delete lineDLESC [ Pn M
+

Print Commands

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Media copy (enter auto print)MCESC [ ? 5 i
Media copy (exit auto print)MCESC [ ? 4 i
Media copy (enter printer controller)MCESC [ 5 i
Media copy (exit printer controller)MCESC [ 4 i
Media copy (print screen)MCESC [ i
Media copy (print screen)MCESC [ 0 i
Media copy (print cursor line)MCESC [ ? 1 i
+

Reports

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Device status report (request status of VT102)DSRESC [ 5 n
Response:
    Terminal OKDSRESC [ 0 n
    Terminal not OKDSRESC [ 3 n
Device status report (request status of printer)DSRESC [ ? 1 5 n
Response:
    Printer readyDSRESC [ ? 1 0 n
    Printer not readyDSRESC [ ? 1 1 n
    No printerDSRESC [ ? 1 3 n
Device status report (report cursor position)DSRESC [ 6 n
Cursor position reportCPRESC [ Pl ; Pc R
Device attributes (what are you)DAESC [ c
Device attributes (what are you)DAESC [ 0 c
Identify terminal (what are you)DECIDESC Z

NOTE: ESC Z is not recommended.

Device attributes response: VT102DAESC [ ? 6 c
+

Reset

+ + + + + + + + + + + + + + + +
NameMnemonicSequence
Reset to initial stateRISESC c
+

Tests and adjustments

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Screen alignment display (fill screen with "Es")DECALNESC # 8
Invoke confidence test (power-up test)DECTSTESC [ 2 ; 1 y
Invoke confidence test (data loopback test; requires test connector)DECTSTESC [ 2 ; 2 y
Invoke confidence test (EIA modem control test; requires test connector)DECTSTESC [ 2 ; 4 y
Invoke confidence test (repeat power-up test continuously until failure or power-off)DECTSTESC [ 2 ; 9 y
Invoke confidence test (repeat data loopback test continuously until failure or power-off; requires test connector)DECTSTESC [ 2 ; 1 0 y
Invoke confidence test (repeat EIA test continuously until failure or power-off; requires test connector)DECTSTESC [ 2 ; 1 2 y
Invoke confidence test (printer port data loopback test; requires test connector)DECTSTESC [ 2 ; 1 6 y
Invoke confidence test (repeat printer port data loopback test continuously until failure or power-off; requires test connector)DECTSTESC [ 2 ; 2 4 y
+

Keyboard LEDs

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameMnemonicSequence
Load LEDs (L1 off)DECLLESC [ q
Load LEDs (L1 off)DECLLESC [ 0 q
Load LEDs (L1 on)DECLLESC [ 1 q
+

VT52 Compatible Mode

+ + + + + + + + + + + + + +
ModesSequence
Enter ANSI modeESC <
+

Keypad Character Selection

+ + + + + + + + + + + + + + + + + +
NameSequence
Enter alternate keypad modeESC =
Exit alternate keypad mode (Numeric keypad mode)ESC >
+

NOTE: VT52 alternate keypad and numeric keypad mode different than ANSI.

+

Character Sets

+ + + + + + + + + + + + + + + + + + + + +
NameSequence
Special graphics character setESC F*
Select US/UK character set (as determined by the US/UK character SET-UP feature)ESC G
* Same as special character and line drawing set in ANSI mode.
+

Cursor Position

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameSequence
Cursor up*ESC A
Cursor down*ESC B
Cursor right*ESC C
Cursor left*ESC D
Cursor to homeESC H
Direct cursor addressESC Y Pl Pc†
Reverse line feedESC I‡
* Same when sent from the terminal.
† Line and column numbers for direct cursor address are single character codes whose values are the desired number plus 378.
+Line and colum numbers start at one.
‡ The last character of the sequence is an uppercase i (1118).
+

Erasing

+ + + + + + + + + + + + + + + + + +
NameSequence
Erase to end of lineESC K
Erase to end of screenESC J
+

Print Commands

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameSequence
Enter auto print modeESC ^
Exit auto print modeESC _
Enter printer controller modeESC W
Exit printer controll modeESC X
Print screenESC ]
Print cursor lineESC V
+

Reports

+ + + + + + + + + + + + + + + + + +
NameSequence
Identify (what are you)ESC Z
Response: VT102 (same as VT52)ESC / Z
+ + + -- cgit v1.2.3