The text of a manual · part 21 of 33
VT220/ANSI Terminal Emulation Programmer's Reference Guide: Section 8: Programming, pages 157 to 166
Pages 157 to 166 of 276, from VT220/ANSI Terminal Emulation Programmer's Reference Guide
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 157
SECTION 8
"
Programming
Table 8-12 (Continued) Selectable Terminal Modes Set Mode Mode (Mnemonic) Reset Mode Screen Reverse (DECSCNM) Normal
Sequence* Wireless Station Action CSI ? 5 h Ignores this code. CSI ? 5 l
Selects normal (light characters on a dark background).
Origin (DECOM)
Origin
CSI ? 6 h
Ignores this code.
Absolute
CSI ? 6 l
Ignores this code.
Auto wrap (DECAWM)
On
CSI ? 7 h
Graphic display characters received when the cursor is at right margin appear on the next line. The display scrolls up if cursor is at end of the scrolling region.
Off
CSI ? 7 l
Graphic display characters received when cursor is at right margin replace previously displayed characters.
Auto repeat (DECARM)
On
CSI ? 8 h
Ignores this code.
Off
CSI ? 8 l
Ignores this code.
Print form feed (DECPFF)
On
CSI ? 18 h
Selects form feed (FF) as print termination character. The wireless station sends this character to the printer after each print screen operation.
Off
CSI ? 18 l
Selects no termination character. The wireless station does not send an FF to the printer after each print screen operation.
*
The last character of each reset mode sequence is lowercase L (6C hexadecimal).
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-21
Page 158
SECTION 8
"
Programming
Table 8-12 (Continued) Selectable Terminal Modes Set Mode Mode (Mnemonic) Reset Mode Print extent Full screen (DECPEX)
Sequence* Wireless Station Action CSI ? 19 h Selects full screen to print during a print screen operation.
Scrolling region
CSI ? 19 l
Selects scrolling region to print during a print screen operation.
Text cursor enable (DECTCEM)
Visible
CSI ? 25 h
Makes the cursor visible.
Not visible
CSI ? 25 l
Makes the cursor not visible.
Keypad (DECKPAM/ DECPNM)
Application
ESC =
Keypad keys send application control functions.
Numeric
ESC >
Keypad keys send characters that match the numeric, comma, period, and minus sign keys on main keypad. PF1--PF4 send control functions.
Character set National CSI ? 42 h (DECNRCM) Multinational CSI ? 42 l Back arrow Backspace CSI ? 6 7 h key mode (DECBKM) Delete
*
8-22
CSI ? 6 7 l
Ignores this code. Ignores this code. The arrow key moves cursor back one space and deletes the character. It sends a BS character to the host. The arrow key deletes the character at the cursor position. It sends a DEL character to the host.
The last character of each reset mode sequence is lowercase L (6C hexadecimal).
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 159
SECTION 8
"
Programming
Cursor Positioning The cursor indicates the position where the next character appears. The wireless station supports all cursor positioning sequences (Table 8-13). " NOTE:
Pn is a variable, ASCII-coded, numeric parameter. Table 8-13 Cursor Positioning
Name (Mnemonic)
Sequence
Wireless Station Action
Cursor up (CUU)
CSI Pn A
Moves cursor up Pn lines in the same column. Cursor stops at top margin.
Cursor down (CUD)
CSI Pn B
Moves cursor down Pn lines in the same column. Cursor stops at bottom margin.
Cursor forward (CUF)
CSI Pn C
Moves cursor right Pn columns. Cursor stops at right margin.
Cursor backward (CUB)
CSI Pn D
Moves cursor left Pn columns. Cursor stops at left margin.
Cursor position (CUP)
CSI Pl ; Pc H
Moves cursor to Line P1, Column Pc.
Horizontal and vertical positions (HVP) Index (IND)
CSI Pl ; Pc f
Moves cursor to Line P1, Column Pc.
ESC D
This is an 8-bit control character (84 hexadecimal) that can be expressed as an escape sequence for a 7-bit environment. IND moves the cursor down one line in the same column. If cursor is at bottom margin, display scrolls up.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-23
Page 160
SECTION 8
"
Programming
Table 8-13 (Continued) Cursor Positioning Name (Mnemonic)
Sequence
Wireless Station Action
Reverse index (RI)
ESC M
This is an 8-bit control character (8D hexadecimal) that can be expressed as an escape sequence for a 7-bit environment. RI moves the cursor up one line in the same column. If the cursor is at top margin, the display scrolls down.
Next line (NEL)
ESC E
This is an 8-bit control character (85 hexadecimal) that can be expressed as an escape sequence for a 7-bit environment. NEL moves the cursor to the first position on the next line. If the cursor is at bottom margin, the display scrolls up.
Save cursor (DECSC)
ESC 7
Saves the following into memory: cursor position, graphic rendition, character set shift state, state of wrap flag, state of origin mode, state of selective erase.
Restore cursor (DECRC)
ESC 8
Restores the states described for DECSC. If none of these characteristics were saved the cursor moves to home position, origin mode is reset, no character attributes are assigned, and the default character set mapping is established.
8-24
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 161
SECTION 8
"
Programming
Tab Stops Tab stops are selected based on the vertical column of the display. When the wireless station receives a horizontal tab code (HT, 09 hexadecimal), the cursor tabs to the next tab stop. If no tab stops exist, the cursor tabs to the right margin. The wireless station supports both tab stop sequences (Table 8-14). The wireless station supports “global” line tab stops only. It does not allow tab set and clear on every character on every line as for a VT220. Table 8-14 Tab Stops Name (Mnemonic) Sequence ESC H Horizontal tab set (HTS)
Tabulation clear (TBC)
Wireless Station Action Sets a tab stop at the current column. HTS is an 8-bit control character (88 hexadecimal) that can also be expressed as an escape sequence when coding for a 7-bit environment.
CSI g
Clears a horizontal tab stop at cursor position.
CSI 0 g
Clears a horizontal tab stop at cursor position.
CSI 3 g
Clears all horizontal tab stops.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-25
Page 162
SECTION 8
"
Programming
Character Rendition and Attributes Character rendition and attributes affect how a character is displayed, without changing the character. Select graphic rendition sequences change character rendition. The select character attribute sequence designates characters as erasable or non-erasable.
Select Graphic Rendition (SGR) Table 8-15 lists select graphic rendition sequences and the action taken by the wireless station. Table 8-15 Select Graphic Rendition Graphic Rendition All attributes off
Sequence and Ps (Single Parameter) Wireless Station Action CSI 0 m Turns all attributes off.
Display bold
CSI 1 m
Translates bold to reverse video.
Display underscored
CSI 4 m
Displays underscored.
Display blinking
CSI 5 m
Ignores this code.
Display negative (reverse) image
CSI 7 m
Displays negative (reverse) image.
Display normal intensity
CSI 2 2 m
Displays normal intensity.
Display not underlined
CSI 2 4 m
Displays not underlined.
Display not blinking
CSI 2 5 m
Ignores this code.
Display positive image
CSI 2 7 m
Displays positive image.
8-26
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 163
SECTION 8
"
Programming
Select Character Attributes (DECSCA) The wireless station ignores select character attributes (Table 8-16). Table 8-16 Select Character Attributes Character Attribute All attributes off Designate characters as non-erasable by DECSEL/ DECSED Designate character as erasable by DECSEL/DECSED
Sequence and Ps
Wireless Station Action
CSI 0 I q
Ignores this code.
CSI 1 I q
Ignores this code.
CSI 2 I q
Ignores this code.
Line Attributes Line attributes affect an entire display line. The cursor selects the line affected by the attribute. It stays in the same character position when the attribute changes, unless the attribute would move the cursor past the right margin. In this case, the cursor stops at the right margin. When scrolling, the attribute moves with the line.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-27
Page 164
SECTION 8
"
Programming
Double-Height Line (DECDHL) Double-height line sequences make the line with the cursor the top or bottom half of a double-height, double-width line. The wireless station ignores these sequences (Table 8-17). Table 8-17 Double-Height Line Line Attribute Double-height, double-width
Half Top
Wireless Station Sequence Action ESC # 3 Ignores this code.
Bottom
ESC # 4
Ignores this code.
Single-Width Line (DECSWL) The wireless station supports the single-width line (Table 8-18). Table 8-18 Single-Width Line Line Attribute Single-width, single-height
Sequence ESC # 5
Wireless Station Action Makes the line with the cursor single-width, single-height. This is the line attribute for all new lines on the display.
Double-Width Line (DECDWL) Double-width line makes the line with the cursor doublewidth, single-height. The wireless station ignores this sequence (Table 8-19).
8-28
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
Page 165
SECTION 8
"
Programming
Table 8-19 Double-Width Line Line Attribute
Sequence
Wireless Station Action
Double-width, single-height
ESC # 6
Ignores this code.
Erasure Mode Erasure mode (ERM) determines whether erasing functions (ECH, erase character; EL, erase in line; and ED, erase in display) can edit protected characters. Table 8-20 lists erasure mode sequences. " NOTE:
In edit mode (DECEDM), ERM affects editing functions IL, DL, ICH, and DCH. Table 8-20 Erasure Mode Mode
Sequence
Comments
Set
CSI 6 h
Reset
CSI 6 l
Erasing functions ECH, EL, and ED can affect all protected and unprotected characters. Erasing functions ECH, EL, and ED can affect only unprotected characters.
Table 8-21 lists the erasing and editing functions that ERM affects. ERM also affects the independent style of character protection.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide
8-29
Page 166
SECTION 8
"
Programming
Table 8-21 Control Functions Affected by Character Protection Always Affected Erase character (ECH)
Affected if Edit Mode (DECEDM) is Set Insert character (ICH)
Erase in line (EL)
Insert line (IL)
Erase in display (ED)
Delete character (DCH) Delete line (DL)
Editing Editing sequences insert and delete characters and lines of characters at the cursor position. The position does not change when lines are inserted or deleted. The wireless station supports all editing sequences (Table 8-22). " NOTE:
Pn is a variable, ASCII-coded, numeric parameter. Table 8-22 Editing
Name (Mnemonic) Insert line (IL)
8-30
Sequence CSI Pn L
Wireless Station Action Inserts Pn lines at the cursor. If fewer than Pn lines remain from the current line to the end of the scrolling region, the number of lines inserted is the lesser number. Lines within the scrolling region at and below the cursor move down. Lines moved past bottom margin are lost. The cursor is reset to Column 1. Sequence is ignored when cursor is outside the scrolling region. In edit mode (DECEDM), if erasure mode (ERM) is reset, lines that move down into a line with a protected character field are lost.
VT220/ANSI Terminal Emulation Programmer’s Reference Guide