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

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

Pages 167 to 176 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 167

SECTION 8

"

Programming

Table 8-22 (Continued) Editing Name (Mnemonic)

Sequence

Wireless Station Action

CSI Pn M

Deletes Pn lines, starting at the line with the cursor. If fewer than Pn lines remain from the current line to the end of the scrolling region, the number of lines deleted is the lesser number. As lines are deleted, the lines within the scrolling region and below the cursor move up, and blank lines are added at the bottom of the scrolling region. 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, DL cannot delete lines that have protected characters. As lines are deleted, the area moved up is bounded by the bottom of the scrolling region, or by the next line with a protected character field.

Insert charac- CSI Pn @ ters (ICH)

Inserts Pn blank characters at the cursor position, with the character attributes set to normal. The cursor does not move and remains at the beginning of the inserted blank characters. A parameter of 0 or 1 inserts one blank character. Data on the line is shifted forward as in character insertion. In edit mode (DECEDM), if erasure mode (ERM) is reset, text moved into a protected character field is lost.

Delete character (DCH)

Deletes Pn characters, starting with the character at the cursor position. When a character is deleted, all characters to the right of the cursor move to the left. This creates a space character at the right margin for each character deleted. Character attributes move with the characters. Spaces created at the end of the line have all of their character attributes off. In edit mode (DECEDM), if erasure mode (ERM) is reset, DCH cannot delete protected characters.

Delete line (DL)

CSI Pn P

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-31

Page 168

SECTION 8

"

Programming

Erasing Erasing deletes characters in the wireless station’s display without affecting other characters. Erased characters are lost. Cursor positioning does not change when characters or lines are erased. Table 8-23 lists erasing sequences and the action taken by the wireless station. Table 8-23 Erasing Name (Mnemonic) Erase character (ECH)

Sequence

Wireless Station Action

CSI Pn X

Erases characters at the cursor position and the next Pn-1 character. A parameter of 0 or 1 erases a single character. Character attributes are set to normal. No reformatting of data on the line occurs. The cursor remains in the same position. If erasure mode (ERM) is reset, ECH cannot erase protected characters.

Erase in line (EL)

CSI K

Erases from the cursor to the end of the line, including the cursor position. Line attribute is not affected. If erasure mode (ERM) is reset, EL cannot erase protected characters.

CSI 0 K

Same as CSI K.

CSI l K

Erases from beginning of the line to the cursor, including the cursor position. Line attribute is not affected. Erases the complete line.

CSI 2 K

8-32

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 169

SECTION 8

"

Programming

Table 8-23 (Continued) Erasing Name (Mnemonic) Erase in display (ED)

Sequence

Wireless Station Action

CSI J

Erases from cursor to the end of display, including the cursor position. Line attribute is single-height, single-width for all completely erased lines. If erasure mode (ERM) is set, ED cannot erase protected character positions.

CSI 0 J

Same as CSI J.

CSI 1 J

Erases from the beginning of the display to the cursor, including the cursor position. Line attribute becomes single-height, single-width for all completely erased lines.

CSI 2 J

Erases complete display. All lines are erased and changed to single-width. The cursor does not move.

Selective erase in line (DECSEL)

CSI ? K CSI ? 0 K CSI ? 1 K CSI ? 2 K

Ignores these codes.

Selective erase in display (DECSED)

CSI ? J CSI ? 0 J CSI ? 1 J CSI ? 2 J

Ignores these codes.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-33

Page 170

SECTION 8

"

Programming

Scrolling Margins (Top and Bottom) The scrolling region is the area of the wireless station’s display that can receive new characters by scrolling old characters off the display. The area is defined by the top and bottom display margins (Table 8-24). The smallest scrolling region allowed is two lines. The number of the top margin must be at least one less than the number of the bottom margin. Table 8-24 Scrolling Margins (Top and Bottom) Name (Mnemonic) Set top and bottom margins (DECSTBM)

Sequence Wireless Station Action CSI Pt ; Pb r Sets top and bottom scrolling margins. The value of Pt must be less than Pb. Moves the cursor to Column 1, Line 1 of the page.

Printing Select print operations with control sequences (Table 8-25). When characters are printed on the screen, printer tab stops are ignored. Print characters are spaced with the SP character. The wireless station sends a carriage return and line feed, vertical tab, or form feed after the last printable character on a line (not a space character). " NOTE:

8-34

The wireless station ignores printer port DSR exchanges.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 171

SECTION 8

"

Programming

Table 8-25 Printing Name

Sequence

Auto print mode

CSI ? 5 i (turn on) Ignores these codes. CSI ? 4 i (turn off)

Printer controller CSI 5 i

Wireless Station Action

Turns on printer controller mode. Wireless station sends received characters to the printer without displaying them on the screen. All characters and character sequences except NUL, XON, XOFF, CSI 5 i, and CSI 4 i are sent to the printer. Wireless station does not insert or delete spaces, provide line delimiters, or select the correct printer character set. Keyboard activity is still directed to the host.

CSI 4 i

Turns off printer controller mode.

Print cursor line

CSI ? l i

Prints the data on the display line with the cursor. Cursor position does not change. Print-cursor-line sequence is complete when the line prints. No CR/LF is attached to the line.

Print screen

CSI i

Prints the screen display (full screen or scrolling region, depending on the print extent DECPEX selection). Printer form feed mode (DECPFF) selects either a form feed (FF) or nothing as the print terminator. Print screen sequence is complete when the screen prints. Same as above.

CSI 0 i

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-35

Page 172

SECTION 8

"

Programming

User-Defined Keys (DECUDK) The wireless station has 20 user-defined keys (UDKs). You can define the codes of 15 of these keys. The keys are: " F6 through F14 " F15 (Help) " F16 (Do) " F17 through F20 Use UDKs to store and recall text and commands that you often use with applications. You should refer to your application’s software manual for the commands you can store in user-defined keys. If you use dual sessions, you can define UDKs for each session. However, you can only save one set of UDK definitions. For each session you can use a total of 256 characters to define UDKs.

Using UDKs To enter definitions for the 15 UDKs, you program the definitions with DECUDK device control strings. To use a UDK after you have defined it, the wireless station must be in shift lock mode (not shift mode, such as gold shift or black shift). For example, if you defined the F6 key, you can use it by pressing the shift lock key for the wireless station and then the key sequence for the F6 key. The following chart shows key combinations. Wireless Station RT3210 RT1100 RT1700 RT5900 PEN*KEYR 6400 PEN*KEY 6500 8-36

Keys [SFT]+[FUNC]+[F] [BLACK]+[GOLD]+[BLACK]+[F] [BLACK]+[GOLD]+[F6] [SHIFT]+[F6] [BLUE]+[SHFT] [Caps Lock]

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 173

SECTION 8

" NOTE:

"

Programming

The host system can also define the function keys.

UDK Memory Space There are 256 bytes of memory space available for the 15 UDKs. Space is supplied on a first come, first serve basis. When the 256 bytes are full you cannot define any more keys until you clear some of the memory space. Three ways that you can clear space are: "

"

"

" NOTE:

Redefine one or more UDKs by using a DECUDK control string. Clear one or more UDKs by using a DECUDK control string. Clear all UDKs with a wireless station power-up or hard terminal reset (RIS) operation.

All UDK key definitions are lost when wireless station power is lost.

Programming UDKs Use the following device control string format to down-line load definitions for UDKs. DCS

Pc ; Pl

Clear and lock Device control string introducer parameters

|

Ky1/St1;¼Kyn/Stn

ST

Final character

Key definition string

String terminator

Each string component is described on the following pages.

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-37

Page 174

SECTION 8

"

Programming

DCS indicates the beginning of a device control string. DCS is an 8-bit C1 character (90 hexadecimal ). You can use ESC P (1B and 50 hexadecimals) for a 7-bit environment. Pc is the clear parameter that selects how to clear key definitions. The following chart summarizes Pc values and meanings. Pc

Meaning

0 (default) or none

Clear all keys before loading new values.

1

Clear one key at a time, before loading a new value.

When Pc is 1, the wireless station only clears the keys you are loading. By using a Pc value of 1, you can redefine some keys without redefining them all. " NOTE:

There are 256 bytes of memory for all UDKs. A key definition can only use the number of bytes available when that key is loaded.

If Pc is 1, a key load may fail because no memory space is available. The reason for this is, with Pc set to 1, keys are cleared and loaded sequentially. If the new definition for a key is larger than the old one you may exceed the 256-byte limit. For example, suppose F6 contains 120 bytes, F7 contains 110 bytes, and F8 contains 20 bytes. You try to load F8 with 40 bytes, F6 with 1 byte, and F7 with 1 byte, in that order. This works if all keys are cleared first (Pc is 0), but not if keys are cleared one at a time (Pc is 1). When you try to load F8 with 40 bytes, the load fails because only 26 bytes are free at that time. (256 maximum -- 120 in F6 -110 in F7 = 26.) Pl is the lock parameter. Pl determines whether the key definitions are locked or unlocked after you load them. The following chart summarizes Pl values and meanings. 8-38

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

Page 175

SECTION 8

"

Programming

Pl

Meaning

0

Lock the keys. If you want to load new values into the keys, you must unlock the keys through the wireless station’s VT220 firmware menus.

1 (default) or none

Do not lock the keys. The keys are unlocked and can be redefined with another DECUDK string.

" NOTE:

If Pl is 1 and the keys are already locked, nothing happens.

" NOTE:

The wireless station ignores UDK DSR exchanges.

The wireless station uses a special lock to allow or prevent the programming of UDKs. You can turn on this lock through the wireless station’s VT220 firmware menus or from the host (with a DECUDK device control string). The lock affects all programmable keys. When using the lock follow these guidelines: Unlock the keys to define them. The keys must be unlocked before you can define them. You can only unlock the keys through the wireless station’s VT220 firmware menus. If a key is locked and an application tries to redefine the key with a DECUDK sequence, the wireless station ignores the sequence. " Lock the keys to prevent redefinition. You can lock the keys through the wireless station’s VT220 firmware menus or from the host (with a DECUDK sequence). New key definitions are unlocked by default. The vertical bar (|, 7C hexadecimal) is the final character. It identifies this control string as a DECUDK. "

VT220/ANSI Terminal Emulation Programmer’s Reference Guide

8-39

Page 176

SECTION 8

"

Programming

Ky1/St1;¼Kyn/Stn are the key definition strings. You include these strings between the final character (|) and the string terminator (ST). Each string consists of a key selector number (Kyn) and a string parameter (Stn), separated by a slash (/, 2F hexadecimal). A semicolon (3B hexadecimal) separates different strings. The key selector number (Kyn) indicates which key you are defining. Following is a list of definable keys and their identifying values. Key

Value

F6

17

F7

18

F8

19

F9

20

F10

21

F11

23

F12

24

F13

25

F14

26

Help

28

Do

29

F17

31

F18

32

F19

33

F20

34

String parameters (Stn) are the encoded definition of the keys. String parameters consist of hex pairs in the following ranges: " 30 through 39 hexadecimal (0 through 9) " 41 through 46 hexadecimal (A through F) " 61 through 66 hexadecimal (a through f) 8-40

VT220/ANSI Terminal Emulation Programmer’s Reference Guide