Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 31 of 46

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 6: Programming, pages 257 to 265

Pages 257 to 265 of 400, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (3.1 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 5020

Page 257

Chapter 6, Programming

The final character in the escape sequence represents the character set you want to designate. For the terminal, the final characters are indicated in the following table. Hard Character Set Final Characters Character Set

Final Character (Hex)

ASCII

B (42)

Special graphics

0 (30)

National replacement

British

A (41)

Dutch

4 (34)

Finnish*

5 (35) or C (43)

French

R (52)

French Canadian*

9 (39) or Q (51)

German

K (4B)

Italian

Y (59)

Norwegian/Danish*

‘ (60) or E (45)

Portuguese

% (25)

Spanish

Z (5A)

Swedish*

7 (37) or H (48)

Swiss

= (3D)

Greek**

6 (36) (Private extension)

*

The first code shown is recommended.

**

Applies only to 6400, 5020, 5055, 59XX, 17XX, and 11XX Terminals.

Locking Shifts The terminal applies the locking shift (LS) control functions in the following table. Locking shifts LS1R, LS2, LS2R, LS3, and LS3R are not available in VT100 mode or ANSI mode. Control Name

Code

Function

LS0 (Locking shift 0)

SI (0F hexadecimal)

Map G0 into GL (default)

LS1 (Locking shift 1)

SO (0E hexadecimal)

Map G1 into GL

LS1R* (Locking shift 1, right)

ESC ~ (1B, 7E hexadecimals)

Map G1 into GR

LS2* (Locking shift 2)

ESC n (1B, 6E hexadecimals)

Map G2 into GL

LS2R* (Locking shift 2, right)

ESC } (1B, 7D hexadecimals)

Map G2 into GR

LS3* (Locking shift 3)

ESC o (1B, 6F hexadecimals)

Map G3 into GL

LS3R* (Locking shift 3, right)

ESC | (1B, 7C hexadecimals)

Map G3 into GR

*

232

Available only in VT320 and VT340 modes.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 258

Chapter 6, Programming

Received Codes Received codes are codes the terminal receives from an application or host computer. The following pages describe received codes, and the action taken by the terminal when it receives the codes from an application or host.

Select C1 Controls Select C1 controls (code extension announcers) control the representation of C1 control codes returned to the application. The terminal supports select 7-bit and 8-bit C1 control transmission as shown in the following table. Note: The terminal does not support DECSCL sequences. Transmission

Sequence

Action

Select 7-bit C1 Control (S7C1T)

ESC sp F

Converts all C1 codes returned to the application to their equivalent 7-bit code extensions.

Select 8-bit C1 Control (S8C1T) (Ignored in VT100 and ANSI modes.)

ESC sp G

Returns C1 codes to the application without converting them to their equivalent 7-bit code extensions.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

233

Page 259

Chapter 6, Programming

Terminal Modes A mode is one of several operating states used by the terminal. The following table lists selectable terminal modes and the action taken by the terminal in set mode and reset mode. Note: The last character of each reset mode sequence is lowercase L (6C hexadecimal). Selectable Terminal Modes Mode (Mnemonic)

Set Mode Reset Mode

Sequence

Action

Keyboard action (KAM)

Locked

CSI 2 h

Locks the keyboard for all following keystrokes.

Unlocked

CSI 2 l

Unlocks the keyboard.

Insert/Replace (IRM)

Insert

CSI 4 h

Selects insert mode. New display characters move old display characters to the right. Characters moved past the right margin are lost. Text moved into a protected character field is lost. If erasure mode (ERM) is reset, text moved into a protected character field is lost.

Replace

CSI 4 l

Selects replace mode. New display characters replace old display characters at cursor position. Old character is erased.

Off

CSI 1 2 h

Disables local echo. When the terminal sends characters to the host, the host must echo them back to the display.

On

CSI 1 2 l

Enables local echo. When the terminal sends characters, they are automatically sent to the display.

New line

CSI 2 0 h

Causes a received LF, FF, or VT code to move the cursor to the first column of the next line. “Return” sends both a CR and an LF code.

Line feed

CSI 2 0 l

Causes received LF, FF, or VT code to move cursor to the next line in the current column. “Return” sends a CR code only.

Cursor key (DECCKM)

Application

CSI ? 1 h

Causes cursor keys to send application control functions.

Cursor

CSI ? l l

Causes cursor keys to send ANSI cursor control sequences.

ANSI/VT52 (DECANM)

(None)

(None)

Not applicable.

VT52

CSI ? 2 l

Ignored.

Column (DECCOLM)

132 column

CSI ? 3 h

Ignored.

80 column

CSI ? 3 l

Selects 80 columns per line.

Scrolling (DECSCLM)

Smooth

CSI ? 4 h

Ignored.

Jump

CSI ? 4 l

Lets the terminal add lines to the display as fast as possible.

Screen (DECSCNM)

Reverse

CSI ? 5 h

Ignored.

Normal

CSI ? 5 l

Selects normal (light characters on a dark background).

Origin (DECOM)

Origin

CSI ? 6 h

Ignored.

Absolute

CSI ? 6 l

Ignored.

Send/Receive (SRM))

Line feed/New line (LNM)

234

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 260

Chapter 6, Programming

Selectable Terminal Modes (continued) Mode (Mnemonic)

Set Mode Reset Mode

Sequence Action

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

Ignored.

Off

CSI ? 8 l

Ignored.

Print form feed (DECPFF)

On

CSI ? 18 h

Selects form feed (FF) as print termination character. The terminal sends this character to the printer after each print screen operation.

Off

CSI ? 18 l

Selects no termination character. The terminal does not send an FF to the printer after each print screen operation.

Print extent (DECPEX)

Full screen

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 Application (DECKPAM/DECPNM) Numeric

ESC =

Keypad keys send application control functions.

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 (DECNRCM)

National

CSI ? 42 h

Ignored.

Multinational

CSI ? 42 l

Ignored.

Back arrow key mode (DECBKM)

Backspace

CSI ? 6 7 h The arrow key moves cursor back one space and deletes the character. It sends a BS character to the host.

Delete

CSI ? 6 7 l

The arrow key deletes the character at the cursor position. It sends a DEL character to the host.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

235

Page 261

Chapter 6, Programming

Cursor Positioning The cursor indicates the position where the next character appears. The terminal supports all cursor positioning sequences as shown in the following table. Note: Pn is a variable, ASCII-coded, numeric parameter. Cursor Positioning Name (Mnemonic)

Sequence

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)

CSI Pl ; Pc f

Moves cursor to Line P1, Column Pc.

Index (IND)

ESC D

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.

Reverse index (RI)

ESC M

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

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

236

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.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 262

Chapter 6, Programming

Tab Stops Tab stops are selected based on the vertical column of the display. When the terminal 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 terminal supports both tab stop sequences . The terminal supports “global” line tab stops only. It does not allow tab set and clear on every character on every line as for a VT/ANSI. Name (Mnemonic)

Sequence

Action

Horizontal tab set (HTS) ESC H

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.

Tabulation clear (TBC)

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 horizontal tab stops.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

237

Page 263

Chapter 6, 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) The following table lists select graphic rendition sequences and the terminal action taken.

Graphic Rendition

Sequence and Ps (Single Parameter)

Action

All attributes off

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

Ignored.

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

Ignored.

Display positive image

CSI 2 7 m

Displays positive image.

Select Character Attributes (DECSCA) The terminal ignores select character attributes. Character Attribute

Sequence and Ps

Action

All attributes off

CSI 0 I q

Ignored

Designate characters as non-erasable by DECSEL/DECSED

CSI 1 I q

Ignored

Designate character as erasable by DECSEL/DECSED

CSI 2 I q

Ignored

238

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 264

Chapter 6, Programming

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. Double-height line sequences make the line with the cursor the top or bottom half of a double-height, double-width line. The terminal ignores these sequences. Select Line Attributes Line Attribute

Half

Sequence

Action

Double-height, double-width

Top

ESC # 3

Ignored

Bottom

ESC # 4

Ignored

The terminal supports the single-width line. Single-Width Line Line Attribute

Sequence

Action

Single-width, single-height

ESC # 5

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 makes the line with the cursor double-width, singleheight. The terminal ignores this sequence. Double-Width Line Line Attribute

Sequence

Action

Double-width, double-height

ESC # 6

Ignored

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

239

Page 265

Chapter 6, Programming

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. The following table lists erasure mode sequences. Note: In edit mode (DECEDM), ERM affects editing functions IL, DL, ICH, and DCH. Mode

Sequence

Comments

Set

CSI 6 h

Erasing functions ECH, EL, and ED can affect all protected and unprotected characters.

Reset

CSI 6 l

Erasing functions ECH, EL, and ED can affect only unprotected characters.

The following table lists the erasing and editing functions that ERM affects. ERM also affects the independent style of character protection. Control Functions Affected by Character Protection

240

Always Affected

Affected if Edit Mode (DECEDM) is Set

Erase character (ECH)

Insert character (ICH)

Erase in line (EL)

Insert line (IL)

Erase in display (ED)

Delete character (DCH) Delete line (DL)

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide