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

VT220/ANSI Terminal Emulation Programmer's Reference Guide: Section 8: Programming, pages 177 to 186

Pages 177 to 186 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 177

SECTION 8

"

Programming

When you combine these hexadecimal values they represent an 8-bit quantity. This method lets you use any of the 256 character codes in the key string. You can enter key definition strings in any order. The default for Stn is “empty.” The key is undefined. ST is the string terminator. ST (9C hexadecimal) is a C1 8-bit character. You can use ESC \ (1B and 5C hexadecimals) for a 7-bit environment.

Loading UDKs Following are some guidelines for loading UDKs. "

"

"

"

"

Clear UDK memory space before loading new definitions. Use a DECUDK string to clear keys without locking them. Then you can use another DECUDK string to redefine the keys and lock them. If you redefine a key, the old definition is lost. This may clear some space if the new definition uses fewer bytes than the old one. There are two ways to lock UDKs, but only one way to unlock them. To lock UDKs, you can use either the wireless station’s VT220 firmware menus or a DECUDK control string. To unlock UDKs, you must use the wireless station’s firmware menus. The default value for each key definition is empty. When you clear UDKs, they are empty. An invalid hex pair in a DECUDK string is ignored.

Examples of Device Control Strings This sequence clears UDKs: DCS 0 ; 1 | ST

This sequence locks UDKs: DCS 1 ; 0 | ST VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-41

Page 178

SECTION 8

"

Programming

Suppose you want to define the F20 key to be PRINT without clearing or locking any other keys. The first part of the sequence would look like this: DCS 1 ; 1 | 3 4 / where 34 is the code for the F20 key. After the slash character (2F hexadecimal) you would include the definition. The rest of the sequence after the slash character would be, 5 0 5 2 4 9 4 E 5 4 ST where the hex encoding for PRINT is: 50 = P 52 = R 49 = I 4E = N 54 = T The ST character (9C hexadecimal) marks the end of the control string. The complete string is: DCS 1 ; 1 | 34 / 50 52 49 4E 54 ST

Down-Line Loadable Character Set The wireless station does not support the ability to create and down-line load a character set of up to 94 characters (Table 8-26). This character set is also called a dynamically redefinable character set (DRCS). Table 8-26 Down-Line Loadable Character Set

8-42

Function

Wireless Station Action

Down-line load DRCS characters

Ignores this function.

Clear a down-line loaded character set

Ignores this function.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 179

SECTION 8

"

Programming

Reports The wireless station sends reports in response to host computer requests. Reports provide identification (type of terminal). Two categories of reports are available: primary and secondary device attributes, and device status reports.

Device Attributes (DA) Table 8-27 shows the action taken by the wireless station when it receives primary and secondary device attribute exchanges. During a primary exchange, the host asks for the wireless station’s service class code. The wireless station responds with “I am a service class 2 terminal.” During a secondary exchange the wireless station responds with “I am a VT220 (identification code of 1) family terminal.” Table 8-27 Device Attributes DA Communication Exchange Sequence Host to VT220 Primary CSI c or (request) CSI 0 c

VT220 to host (response)

Meaning “What is your service code and what are your attributes?”

Secondary

CSI > c or CSI > 0 c

“What type of terminal are you, what is your firmware version, what hardware options do you have installed?”

Primary

CSI ? Pv;¼Pvc

CSI ? 62 c (I am a VT220).

Secondary

CSI > l; Py; Po c CSI > 1 c (I am a VT220).

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-43

Page 180

SECTION 8

"

Programming

Device Status Reports (DSR) Table 8-28 shows the action taken by the wireless station when it receives device status report exchanges, when the host computer asks for the general operating status of the wireless station or printer, or both. If the wireless station is in printer controller mode, the printer receives the DSR request but cannot answer. Table 8-28 Device Status Reports Wireless Station Action Ignores this code.

Communication Host to VT220 (Request for terminal status) VT220 to host (DA response) Host to VT220 (Request for cursor position)

Sequence CSI 5 n

VT220 to host (CPR response)

CSI Pv; Ph R

Host to VT220 (Request for printer status) VT220 to host

CSI ? 15 n CSI ? 13 n CSI ? 10 n CSI ? 11 n

Ignores these codes.

User-defined keys

Host to VT220 (Request for UDK status) VT220 to host

CSI ? 25 n

Ignores this code. Ignores these codes.

Keyboard language

Host to VT220 (Request for keyboard language)

CSI ? 20 n CSI ? 21 n CSI ? 26 n

CSI ? 27; Pn n

Ignores this code.

DSR Exchange VT220

Printer port

VT220 to host

8-44

CSI 0 n or CSI 3 n CSI 6 n

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Ignores these codes. “Please report your cursor position using a CPR (not DSR) control sequence.” “My cursor is positioned at _____ (Pv); _____ (Ph).” (Pv=row, Ph=column) Ignores this code.

Ignores this code.

Page 181

SECTION 8

"

Programming

Identification The identification sequence is not recommended. The wireless station supports the identification sequence (Table 8-29). Table 8-29 Identification Name (Mnemonic) Identification (DECID)

Sequence ESC Z

Wireless Station Action Ignores this code.

Terminal Reset Terminal reset escape sequences cause either a soft terminal reset or a hard terminal reset. Table 8-30 shows the action taken by the wireless station when it receives terminal reset sequences. Table 8-30 Terminal Reset Name (Mnemonic) Soft terminal reset (DECSTR) Hard terminal reset (RIS)

Sequence Wireless Station Action CSI ! p

Ignores this code.

ESC c

Performs a communications line disconnect. Clears the display. Returns the cursor to the upper-left corner of the display. Sets the SGR state to normal. Sets all character sets to the default.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-45

Page 182

SECTION 8

"

Programming

Tests and Adjustments The wireless station has adjustment patterns you can invoke from the host computer with escape sequences. Adjustment sequences send uppercase E’s to the wireless station’s display. Adjustment procedures are usually done only by qualified technicians. For more information, contact the Customer Response Center at the phone numbers listed in the introduction to this programmer’s reference guide. Table 8-31 shows the action taken by the wireless station when it receives test and adjustment sequences. Table 8-31 Tests and Adjustments Name (Mnemonic) Sequence CSI 4 ; Ps ; ..... ; Ps y Tests (DECTST)

Wireless Station Action Ignores this code.

Adjustments (DECALN)

Fills display with uppercase E’s.

ESC # 8

VT52 Mode Escape Sequence The wireless station does not support VT52 mode, which allows the VT220 to operate with DEC software written for VT52 terminals.

8-46

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 183

SECTION 8

"

Programming

Define Area Qualification The define area qualification (DAQ) command indicates that the active position is the first character position of a qualified area. The end of a qualified area is indicated by the beginning of the following qualified area. The qualifications of the area are specified according to the parameter(s). Table 8-32 lists qualification sequences. Table 8-32 Define Area Qualification Sequence and Ps (Single Parameter) Wireless Station Action CSI 0 o Accepts all input.

Qualification Accept all input Accept no input (protected) and do not transmit (guarded)

CSI 1 o

Accepts no input.

Accept graphics

CSI 2 o

Accepts graphics.

Accept numerics

CSI 3 o

Accepts numerics.

Accept alphabetics

CSI 4 o

Accepts alphabetics.

Right justify in area

CSI 5 o

Right justifies area.

Zero fill in area

CSI 6 o

Fills area with zeroes.

Horizontal tab stop at start of area

CSI 7 o

Places a horizontal tab stop at the start of the area.

Accept no input (protected), but select for transmission (unguarded) Space fill in area

CSI 8 o

Accepts no input.

CSI 9 o

Fills area with spaces.

Invisible

CSI 1 0 o

Makes passwords invisible.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-47

Page 184

SECTION 8

"

Programming

Private Sequences Private sequences enable or disable the autosend (Table 8-33). Table 8-33 Private Sequence Mode

Sequence* Wireless Station Action

Set

ESC [ = 3 l

Enables autosend. Transmits the screen when the last field is filled. If you are on the last defined field and get data from the bar code reader or RS-232 port, the display will also be automatically sent even if the field not filled.

Reset

ESC [ = 3 h

Disables autosend. Only transmits when a terminating key is pressed.

* The last character of the set mode sequence is lowercase L (6C hexadecimal).

Proprietary Sequences Line Edit and Character Modes Two proprietary escape sequences enable the host to put the wireless station into line edit (block) mode or character mode (Table 8-34). Note that the wireless station enters character mode when it is cold-started.

8-48

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 185

SECTION 8

"

Programming

Table 8-34 Line Edit and Character Mode Sequences Mode

Sequence*

Line edit

CSI = 1 l

Character

CSI = 1 h

* The last character of the line edit mode sequence is lowercase L (6C hexadecimal).

Norcompress The norcompress function (Table 8-35) handles the norrc command, where “a” is the number of iterations that “b” occurs in the datastream. Table 8-35 Norcompress Name

Sequence

Norcompress

CSI a;bz

VT330/VT340 Applications VT330/VT340 terminal applications supported by the wireless station include setting the right margin, using control functions, and creating text forms.

Right Margin The wireless station’s display contains 2 to 80 columns. To ensure that the cursor will not go beyond Column Pn, use the following sequence to set the number of columns (Pn is a number from 2 to 80): CSI Pn $ ¦

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-49

Page 186

SECTION 8

"

Programming

Control Functions In editing mode you can use the erasure, deletion, and insertion control functions. The character protection field lets you design text forms that cannot be changed or overwritten. In edit mode, character protection also depends on the setting of erasure mode (ERM): "

"

If ERM is set all characters can be changed, erased, and moved, regardless of protection. If ERM is reset only unprotected characters can be changed, erased, and moved. These control functions will not affect protected areas in page memory: Insert line (IL) Delete line (DL) Insert character (ICH) Delete character (DCH) Erase in display (ED) Erase in line (EL) Erase character (ECH)

Text Forms When using C1 control characters SPA, EPA, SSA, and ESA to create forms on the host, the rows and columns to which the cursor moves must be in sequential order. The following example shows some sequences that create a text form.

8-50

VT220/ANSI Terminal Emulation Programmer’s Reference Guide