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 25 of 33

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Section 6: Programming, pages 205 to 214

Pages 205 to 214 of 278, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (4.0 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 205

SECTION 6

Programming

Cursor Tabulation Control Table 6-38 lists cursor tabulation control (CBT) sequences in ANSI mode. Table 6-38 Cursor Tabulation Control Sequences Sequence Action CSI 0 W CSI 1 W CSI 2 W CSI 3 W CSI 4 W CSI 5 W CSI 6 W

Sets horizontal tab stop at current location. Sets vertical tab stop at current location. Clears horizontal tab stop. Clears vertical tab stop. Clears all horizontal tab stops this line. Clears all horizontal tabs stops in the machine. Clears all vertical tab stops

Scrolling Table 6-39 lists scrolling sequences in ANSI mode. Table 6-39 Scrolling Sequences Name (Mnemonic) Sequence Action Scroll up (SU) Scroll down (SD)

CSI Ps S CSI Ps T

Scrolls display up Ps lines. Scrolls display down Ps lines.

Transmitted Keyboard Codes Transmitted codes are generated by the terminal’s keys and sent to the host computer or software application in use. The following pages describe the capability of the terminals to emulate codes generated by the VT/ANSI terminal keyboard’s main keypad, editing keypad, auxiliary keypad, and top-row function keys. Codes are sent via Line Edit (block) mode or optimized Character mode selected through the keyboard function labeled MODE on the overlay.

Line Edit (Block) Mode Line Edit (block) mode is a synchronous condition where the terminal temporarily stores or “buffers” keys you press. It sends the cumulative data to the host computer when you press one of the following terminating keys: [ENTER] [F6] through [F20], [PF1] through [PF4] [CTRL]+[A] through [CTRL]+[Z] Forward Tab DEL (7F hexadecimal) Backspace TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

6-31

Page 206

SECTION 6

Programming

The following also apply to Line Edit (block) mode: " When you press [PF1], the following key will also be transmitted directly to the host computer. " When scanning, the terminal automatically enters Line Edit (block) mode for each individual scan. When it completes scanning, it returns to the mode it was set at before it started scanning. For codes generated by the cursor control key, see page 6-33. For codes generated by the auxiliary keypad keys, see page 6-34.

Character Mode Character mode (the default) is a condition where the terminal sends, to the host computer, each key as you press it. You should place the terminal into Character mode during these situations: " When the terminal should immediately send information to the host computer. This operation is called “type-ahead.” " When the terminal’s keyboard sends a character to the display as well as to the host. This operation is called “local echo.” If local echo is disabled, the host receives the character from the terminal and then sends the return response. To alternate between Line Edit (block) mode and Character mode, press the mode key as defined under “Transmission Mode” in Section 3, “Using the Terminal’s Keyboard.”

Transmitted Keyboard Keys The following pages describe codes generated by main keypad keys, editing keys, auxiliary keys, and top-row function keys.

Main Keypad The terminal emulates all of the standard and most of the special function keys on the VT/ANSI main keypad. The standard keys generate letters, numbers, and symbols, either alone or in combination with other keys. The function keys generate special function codes. Table 6-40 lists the codes generated by the special function keys. Table 6-40 Special Function Keys and Codes Generated VT/ANSI Key

Code

Ctrl

Does not send a code when used alone. Is always used in combination with another key to send a control code.

Delete

DEL (7F hexadecimal).

Lock

None.

Return

CR (0D hexadecimal) or CR (0D hexadecimal) LF (0A hexadecimal).

Shift

Does not send a code when used alone; sends uppercase characters when used with other standard keys.

Space bar

SP (20 hexadecimal).

Tab

HT (09 hexadecimal).

6-32

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 207

SECTION 6

Programming

Editing Keypad The terminal has editing keys and cursor control keys. Editing keys have functions assigned to them by the application software in use. Refer to your VT/ ANSI application software manual for the uses of the editing keys.

Editing Keys Table 6-41 lists the codes generated by the editing keys. " NOTE:

The editing keys do not send codes in VT100 mode. Table 6-41 Editing Keys and Codes Generated VT/ANSI Key

Code

VT/ANSI Key

Code

Find

CSI 1 a

Prev screen

CSI 5 a

Insert here

CSI 2 a

Remove

CSI 3 a

Next screen

CSI 6 a

Select

CSI 4 a

Cursor Keys

Table 6-42 lists codes generated by the terminals’ cursor keys. Table 6-42 Cursor Keys and Codes Generated Key

Cursor Key Mode Reset (Normal)

Cursor Key Mode Set (Application)

Down arrow

CSI B

SS3 B

Left arrow

CSI D

SS3 D

Right arrow

CSI C

SS3 C

Up arrow

CSI A

SS3 A

Sending Host Cursor Keys

In keyboard unshifted and shifted modes, the cursor control key sends a host cursor key to the host computer. The cursor control key emulates the arrow keys of a VT/ANSI Terminal in either their normal arrow key mode or Application mode, depending on the state set by the programmer. To Send

Press Terminal Key(s)

Host cursor down key Host cursor left key Host cursor right key Host cursor up key Host cursor down key Host cursor left key Host cursor right key Host cursor up key

[B] [A ] ["] [Y] [SFT]+[B] [SFT]+[A] [SFT]+["] [SFT]+[Y]

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

6-33

Page 208

SECTION 6

Programming

Auxiliary Keypad Auxiliary keypad keys enter numeric data. The application software in use can also assign functions to these keys; refer to your VT/ANSI application software manual for their uses. Table 6-43 shows codes generated by the auxiliary keys in keypad Application mode. Table 6-43 Auxiliary Keys and Codes Generated VT/ANSI Key

Keypad Mode

VT/ANSI Key

Keypad Mode

0 1 2 3 4 5 6 7 8

SS3 p SS3 q SS3 r SS3 s SS3 t SS3 u SS3 v SS3 w SS3 x

9 -- (hyphen) , (comma) . (period) Enter PF1 PF2 PF3 PF4

SS3 y SS3 m SS3 l SS3 n SS3 M SS3 P SS3 Q SS3 R SS3 S

Top-Row Function Keys Table 6-44 lists function keys and the codes generated. Table 6-44 Top-Row Function Keys and Codes Generated Key

VT220/320/340 Mode

VT100 Mode Key

VT220/320/340 Mode

VT100 Mode

F5 (Break)

No code

No code

F13

CSI 2 5 ~

LF

F6

CSI 1 7 ~

No code

F14

CSI 2 6 ~

No code

F7

CSI 1 8 ~

No code

F15

CSI 2 8 ~

No code

F8

CSI 1 9 ~

No code

F16

CSI 2 9 ~

No code

F9

CSI 2 0 ~

No code

F17

CSI 3 1 ~

No code

F10

CSI 2 1 ~

No code

F18

CSI 3 2 ~

No code

F11

CSI 2 3 ~

Esc

F19

CSI 3 3 ~

No code

F12

CSI 2 4 ~

BS

F20

CSI 3 4 ~

No code

Local Edit Mode If your application software program supports local editing, the terminal can be programmed to operate in Local Edit mode. Local Edit mode is a feature of the VT340 Terminal. Use the mode to send characters to page memory instead of to the host. The terminal sends a block of edited text to the host after you press a terminating key. Terminating keys in Local Edit mode are: [ENTER] [F1] through [F20] 6-34

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 209

SECTION 6

Programming

Edit Mode and Interactive Mode The edit mode control function (DECEDM) selects edit mode or interactive mode. The function determines when the terminal sends data to the host. Table 6-45 describes the modes. Table 6-45 Local Edit Modes Mode

Sequence*

Action

Set

CSI ? 1 0 h

Selects edit mode. (Turns on the annunciator in the display.) The terminal stores all typed characters in page memory for local editing. After the data is edited, it can be sent in a block to the host.

Reset

CSI ? 1 0 l

Selects interactive mode. (Turns off the annunciator in the display.) The terminal immediately sends typed characters to the host.

*

The last character in the reset sequence is lowercase L (6C hexadecimal).

Local Editing Setup To use the terminal in Local Edit mode, the local editing features must be set up for the application software as described in Table 6-46. Table 6-46 Local Editing Setup Feature

Setting

Description

Edit mode

Edit

Edited text is stored in memory until you press a terminating key, which sends the text to the host.

Edit key execution mode Transmit execution mode

Not supported. Immediate

The terminal sends data to the host immediately after you press a terminating key.

Local editing application keys Suffix transmit

When you press [F1] through [F20], the terminal sends that function to the host after sending a block of data.

Line transmit mode

Disabled

The terminal sends a full page of data to the host after you press a terminating key.

Transfer termination mode

Enabled

After you press a terminating key, the terminal sends the scrolling region, which is the area inside the scrolling margins.

VT131 transfer mode Space compression

Not supported. Disabled

The terminal sends a space character for each unused character position.

End of line characters

On the terminal, no characters indicate the end of a line in a data block.

End of block characters

On the terminal, no characters indicate the end of a data block.

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

6-35

Page 210

SECTION 6

Programming

Selecting Characters to Send Three control functions allow you to define which characters the terminal can send to the host. Table 6-47 shows how the control functions select which characters the terminal sends. Table 6-47 Selecting Character Fields for Transmission Fields Selected

Guarded Area Selected Area Multiple Area Transfer Mode Transfer Mode Transfer Mode

All fields

Set

Set

Unavailable

Unprotected fields only

Reset

Set

Unavailable

Selected fields only

Set

Reset

Set

Selected field with cursor only

Set

Reset

Reset

Unprotected and selected fields

Reset

Reset

Set

Selected field with cursor only

Reset

Reset

Reset

Guarded Area Transfer Mode (GATM) The GATM control function selects whether the terminal sends all characters or only unprotected characters to the host. When GATM is unprotected (reset), the terminal sends a record separator (RS, 1E hexadecimal) to the host in place of a protected field. Table 6-48 lists GATMs. Table 6-48 Guarded Area Transfer Modes Mode

Sequence*

Action

Set (All)

CSI 1 h

Selects all characters. During block transmission, the terminal can send all protected and unprotected characters to the host.

Reset (Unprotected)

CSI 1 l

Selects unprotected characters. During a block transmission, the terminal can send only unprotected characters to the host.

*

The last character of the reset sequence is lowercase L (6C hexadecimal).

Selected Area Transfer Mode (SATM) The SATM control function determines whether the terminal can send all characters or only selected characters to the host. Selected characters are characters defined as eligible to send to the host. Table 6-49 lists SATMs. Table 6-49 Selected Area Transfer Modes Mode

Sequence*

Action

Set (All)

CSI 1 7 h

Selects all characters. The terminal can send selected and unselected characters on the current page to the host.

Reset (Unprotected)

CSI 1 7 l

Selects only selected characters. The terminal can only send selected characters on the current page to the host.

* 6-36

The last character of the reset sequence is lowercase L (6C hexadecimal). TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 211

SECTION 6

Programming

Multiple Area Transfer Mode (MATM)

The MATM control function determines what selected character areas the terminal can send to the host. MATM work only when SATM is reset. Table 6-50 describes MATMs. Table 6-50 Multiple Area Transfer Modes Mode

Sequence*

Action

Set (All)

CSI 1 5 h

The terminal can send all selected areas on the page to the host.

Reset (Unprotected)

CSI 1 5 l

Selects one area. The terminal can send only the selected area with the cursor. If the cursor is not in a selected field, cursor moves to the next selected field.

*

The last character of the reset sequence is lowercase L (6C hexadecimal).

Defining Selected Areas Start selected area (SSA) and end selected area (ESA) control functions select which characters on the current page the terminal can send to the host. SSA and ESA are 8-bit C-1 control characters that can also be coded as 7-bit escape sequences. The following conditions apply to SSA and ESA: They work only when SATM is reset. " If the terminal receives ESA before SSA, it ignores ESA. " If SSA is not followed by ESA on the same page, the SSA has no effect on that page. Selected areas must always end with ESA. " Selected areas cannot be changed by the ED, EL, or ECH control functions. Table 6-51 describes SSA and ESA. "

Table 6-51 Start Selected Area and End Selected Area 7-Bit Equivalent

Action

Start selected area (SSA) SSA (86 hex)

ESC F (1B, 46 hex)

Marks the cursor position as the first of a string of character positions the terminal can send to the host.

End selected area (ESA)

ESC G (1B, 47 hex)

Defines the cursor position as the last of a string of character fields the terminal can send to the host.

Name (Mnemonic)

8-Bit

ESA (87 hex)

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

6-37

Page 212

SECTION 6

Programming

Local Edit Mode Keys Keys with special functions in Local Edit mode are described in Table 6-52. Table 6-52 Local Edit Mode Keys Key(s)

Function

Find Tab

Advances cursor to the top margin, Column 1. Advances cursor to the next tab stop. If in protected area, it advances to the next selectable field. If tab stop is selected, it advances to the next selectable field. Default mode is “insert.” The key toggles between insert and overstrike. If in insert mode, all following characters in the field are shifted right one position. If the field is full the last character is deleted. If in protected area, terminal beeps and the cursor advances to the first position of the next selectable field. If no selectable field is found, it advances to the bottom margin (the default is Row 24, Column 80). If in unprotected field, the field is cleared and the cursor is positioned to the beginning of the selectable field. Ignores this key. Ignores this key. Ignores this key. Moves cursor one position to the left until it reaches the left margin. Deletes the previous selectable character. If one of these keys is pressed while in a protected area, the terminal beeps, advances the cursor to the next selectable field, and enters the characters. If no other selectable field is found, the cursor advances to the bottom margin. Cursor moves back to the first occurrence of the following:

Insert here Remove

Prev screen Next screen Select Backspace Delete A--Z, 0--9, Auxiliary keypad Back Tab

Cursor

[Y] [B] ["] [A]

"

Previous tab stop.

"

Beginning of the current unprotected field.

"

Beginning of the previous unprotected field.

" Beginning of scrolling region. (Also called top margin.) Cursor moves up one line until it reaches the top margin. The terminal beeps when the cursor reaches the top margin. Cursor moves down one line until it reaches the bottom margin. The terminal beeps when the cursor reaches the bottom margin. Cursor moves right one character position until it reaches the right margin. The terminal beeps when the cursor reaches the right margin. Cursor moves left one character position until it reaches the left margin. The terminal beeps when the cursor reaches the left margin.

Scanning in Local Edit Mode When scanning is enabled, data from the scanner is placed into the field where the cursor is located. If the cursor is not in an input field, the data from the scanner is placed into the next input field. If the data from the scanner fills the first input field, the remaining characters are placed into the next input field. When the bar code does not fill the input field, the cursor stays where it ended. If autotab scanning is enabled, the cursor is placed at the beginning of the next input field. If not next input field is found, extra data will be lost.

6-38

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

Page 213

SECTION 6

Programming

Set Transmit Termination Character (DECTTC) The terminal supports the set transmit termination character (DECTTC) control function. Use the control function to select a character to indicate the end of a block transmission. You do not need to use an end-of-block character. The terminal sends the end-of-block character to the host at the end of each block transmission. The control sequence is: CSI Ps « Ps is the end-of-block character in the following chart. Ps

End-of-Block Character

Action

0 (default) 1 2 3 4 5

No character (DECTTC disabled) FF (0C hexadecimal) ETX (03 hexadecimal) EOT (04 hexadecimal) CR (0D hexadecimal) DC3 (13 hexadecimal)

Form feed End of text End of transmission Carriage return XOFF

Use an extended form of DECTTC to select a string of characters to indicate the end of a block. The extended form uses decimal codes to represent characters. You can use the extended form to send a control function at the end of a block transmission, instead of a single character. You can send a control sequence of up to six characters (Pn1 through Pn6) at the end of a block. The control sequence is: CSI ? Pn1 ; } Pn6 « Pn1 through Pn6 are decimal codes for characters you can define as end-of-block. For example, the decimal code for ESC is 27 (1B hexadecimal). A code outside the range of 0 to 254 is ignored. Table 6-1 on page 6-2 and Table 6-3 on page 6-4 contain decimal codes for characters. For example, to send the default code of the PF1 key on the terminal’s numeric keypad at the end of a block transmission, use the following procedure. 1. The PF1 key sends this default code: ESC O P 2. Translate each character in the sequence to decimal code. ASCII characters: ESC O P 27 79 80 Decimal codes: 3. Insert the decimal codes into the extended DECTTC sequence: CSI ? 27 ; 79 ; 80 «

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

6-39

Page 214

Programming

6-40

TE 2000t VT/ANSI Terminal Emulation Programmer’s Guide

SECTION 6