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 28 of 47

TE 2000 VT/ANSI Terminal Emulation Programmer's Guide: Chapter 5: Customizing Your Configuration, pages 242 to 250

Pages 242 to 250 of 416, from TE 2000 VT/ANSI Terminal Emulation Programmer's Guide

The original document is the PDF (3.6 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 2435

Page 242

Chapter 5, Customizing Your Configuration

Preinitializing the VT/ANSI TE Program You can preinitialize the VT/ANSI TE program. You must name the VT/ ANSI initialization file as VT220.INI. The file is processed when you reset or warm start the terminal. The file is processed as if the radio had received the data, and must be in the “on-air” format. For instructions on how to download the file, see “Downloading Files” on page 228. Data is encoded in binary format. To create VT220.INI, you may need a HEX editor or other special program. VT220.INI starts with a single byte that the terminal ignores. This byte should always be 0 (zero). The remainder of the file contains standard VT/ ANSI terminal escape sequences. The following example shows how to display “HELLO WORLD” and beep the beeper from within a data stream initialization file. The line of hexadecimal digits represent the binary values that must be stored in the initialization files. 00 07 48 45 4c 4c 4f 20 57 4f 52 4c 44 H E L L O WOR L D

FIrst byte is discarded, should be zero Bell character

218

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 243

Chapter 5, Customizing Your Configuration

Remapping the Terminal’s Keys Note: These instructions assume the REMAP.CFG file is downloaded onto your terminal. For instructions on how to download the file to the terminal, see “Downloading Files” on page 228. You may need to remap the terminal’s keys if your users need to press a key in VT/ANSI TE that is not on a standard 101-key keyboard. You can also remap a terminal key to transmit a text string or message to the personal computer. To remap the terminal keys, you create the REMAP.CFG file and add a Remap command to remap a terminal key. You can remap a single key or a two-key sequence. You can add a Remap command or create a macro in the REMAP.CFG file that remaps a single key or a two-key sequence. You can remap any terminal key or two-key sequence that does not perform a specific function on the terminal. For example, you can remap the [B] key because it only types the lowercase letter B. Note: On the 2425, 2455, 2475, and 248X, you cannot remap the twokey sequence ) [ because it moves the window/viewport up on the Trakker Antares Terminals. Each terminal key or two-key sequence generates a 4-digit hexadecimal remap code as listed in the “Key Code” table starting on page 221. The key code table gives the 4-digit hexadecimal codes for ASCII characters for the terminals. These codes identify the key or keys pressed. For example: Key

Action

4-Digit Hex Key Code

[B]

Types a lowercase B

0062

[SHIFT] [B]

Types an uppercase B

0042

Remapping a Key or Two-Key Sequence Note: For terminals made before 1997, refer to the “Using FLSHCONV” section for the proper -e parameter value. 1 Choose the key or two-key sequence to remap and determine the current 4-digit hexadecimal code of the keys and the code you will enter to remap the keys. For help, see the “Key Code” table on the next page. 2 Connect the terminal to your personal computer. 3 Using any text editor, enter the keys you want remapped on individual lines in this format: remap=<key>=”string” or remap=<key>=<key> S remap is the command you enter in REMAP.CFG. S key is the 4-digit hexadecimal key or keys to which or from which you are remapping. S string is the new function for the key or keys, which can be a text string, ASCII mnemonic, or another 2-byte hexadecimal code. Enclose the entire string in quotation marks. If ”<” is desired in the string, then precede it with another “<” like the following. remap=<xxxx>=“a less-than sign is a <<”

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

219

Page 244

Chapter 5, Customizing Your Configuration

4 Save the new file as REMAP.CFG. 5 Download REMAP.CFG to drive C: on your terminal.

Example 1 Suppose you want to remap “+” on your terminal to send a message and then enter a carriage return. In the REMAP.CFG file, add the following command: remap=<002b>=“My battery is low.<CR>”

Example 2 To remap the function of the function keys to another key, replace string with the transmitted code for the function and replace key with the 4-digit hexadecimal key that will do the function. For example, to remap the [F6] function to the “B” key, add the remap=<0042>=“<ESC>[17~” command to the REMAP.CFG file.

Example 3 This is an example of multiple hexadecimal codes in the right-most argument which makes a key into a text sequence with embedded EHLLAPI values for the [F4] and [F5] keys. remap=<xxxx>=“EHLLAPI value 1<1034>EHLLAPI value 2<1035>END”

Creating a Macro 1 Using any text editor, add the macro=<key>=“string” Macro command to the end of the REMAP.CFG file, where: S macro is the command you enter in REMAP.CFG. S key is the 4-digit hexadecimal key or keys you are remapping. S string is the new action for the key or keys. The string can be a text string, ASCII mnemonic, or another 2-byte hexadecimal code. Enclose the entire string in quotation marks. 2 At the end of the macro, type runmacro=<key> where key is the 4-digit hexadecimal code that identifies the key or keys that activate the macro. 3 Save the file name as REMAP.CFG for the macros to work. 4 Append the new remap to the original hex file using one of the following commands. Replace ??? with your type of terminal: S 59XX Terminals FLSHCONV -a –eE000 FWP59??H0.HEX REMAP.CFG –oNEW.HEX

S 17XX, 11XX Terminals FLSHCONV -a –eFFC0 FWP1???H0.HEX REMAP.CFG –oNEW.HEX

5 Download REMAP.CFG to drive C on your terminal.

Example You can assign “+” to activate a macro that remaps [B] to send the message, “Change the battery pack now.” In the REMAP.CFG file, add this command: remap=<002b>=“Change the battery pack now.<CR>”

220

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 245

Chapter 5, Customizing Your Configuration

Nesting Macros do not nest. The right-most argument is processed as key strokes and not scanned for macro values. For example: // swap “3” and “5” keys remap=<0033>=“5” // map “3” key to a “5” key remap=<0035>=“3” // map “5” key to a “3” key

The “3” key produces a “5” key. If nesting was allowed, the “5” key is recognized as a macro that produces the “3” key and the “3” key is recognized as a “5” key that produces the “7” key, and so forth.

Key Code Table Note: Values that are not listed here may work but are not supported. remap=<0001>=“string” /*CTRL A*/ remap=<0002>=“string” /*CTRL B*/ remap=<0003>=“string” /*CTRL C*/ remap=<0004>=“string” /*CTRL D*/ remap=<0005>=“string” /*CTRL E*/ remap=<0006>=“string” /*CTRL F*/ remap=<0007>=“string” /*CTRL G*/ remap=<0008>=“string” /*CTRL H or Backspace key*/ remap=<0009>=“string” /*CTRL I or Tab key*/ remap=<000A>=“string” /*CTRL J*/ remap=<000B>=“string” /*CTRL K*/ remap=<000C>=“string” /*CTRL L*/ remap=<000D>=“string” /*CTRL M*/ remap=<000E>=“string” /*CTRL N*/ remap=<000F>=“string” /*CTRL O*/ remap=<0011>=“string” /*CTRL P*/ remap=<0012>=“string” /*CTRL Q*/ remap=<0013>=“string” /*CTRL R*/ remap=<0014>=“string” /*CTRL S*/ remap=<0015>=“string” /*CTRL T*/ remap=<0016>=“string” /*CTRL U*/ remap=<0017>=“string” /*CTRL V*/ remap=<0018>=“string” /*CTRL W*/ remap=<0019>=“string” /*CTRL X*/ remap=<001A>=“string” /*CTRL Y*/ remap=<001B>=“string” /*CTRL Z*/ remap=<0020>=“string” remap=<0021>=“string” remap=<0022>=“string” remap=<0023>=“string” remap=<0024>=“string” remap=<0025>=“string” remap=<0026>=“string” remap=<0027>=“string” remap=<0028>=“string”

/* SPACE key */ /* ! key */ /* ” key */ /* # key */ /* $ key */ /* % key */ /* & key */ /* ’ key */ /* ( key */

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

221

Page 246

Chapter 5, Customizing Your Configuration

222 remap=<0029>=“string” remap=<002a>=“string” remap=<002b>=“string” remap=<002c>=“string” remap=<002d>=“string” remap=<002e>=“string” remap=<002f>=“string”

/* ) key */ /* * key */ /* + key */ /* , key */ /* - key */ /* . key */ /* / key */ remap=<0030>=“string” remap=<0031>=“string” remap=<0032>=“string” remap=<0033>=“string” remap=<0034>=“string” remap=<0035>=“string” remap=<0036>=“string” remap=<0037>=“string” remap=<0038>=“string” remap=<0039>=“string”

/* 0 key*/ /* 1 key*/ /* 2 key*/ /* 3 key*/ /* 4 key*/ /* 5 key*/ /* 6 key*/ /* 7 key*/ /* 8 key*/ /* 9 key*/ remap=<003a>=“string” remap=<003b>=“string” remap=<003c>=“string” remap=<003d>=“string” remap=<003e>=“string” remap=<003f>=“string” remap=<0040>=“string”

/* : key */ /* ; key */ /* < key */ /* = key */ /* > key */ /* ? key */ /* @ key */ remap=<0041>=“string” remap=<0042>=“string” remap=<0043>=“string” remap=<0044>=“string” remap=<0045>=“string” remap=<0046>=“string” remap=<0047>=“string” remap=<0048>=“string” remap=<0049>=“string” remap=<004a>=“string” remap=<004b>=“string” remap=<004c>=“string” remap=<004d>=“string” remap=<004e>=“string” remap=<004f>=“string” remap=<0050>=“string” remap=<0051>=“string” remap=<0052>=“string” remap=<0053>=“string” remap=<0054>=“string” remap=<0055>=“string” remap=<0056>=“string” remap=<0057>=“string” remap=<0058>=“string”

/* A key*/ /* B key*/ /* C key*/ /* D key*/ /* E key*/ /* F key*/ /* G key*/ /* H key*/ /* I key*/ /* J key*/ /* K key*/ /* L key*/ /* M key*/ /* N key*/ /* O key*/ /* P key*/ /* Q key*/ /* R key*/ /* S key*/ /* T key*/ /* U key*/ /* V key*/ /* W key*/ /* X key*/

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 247

Chapter 5, Customizing Your Configuration remap=<0059>=“string” /* Y key*/ remap=<005a>=“string” /* Z key*/ remap=<005b>=“string” remap=<005c>=“string” remap=<005d>=“string” remap=<005e>=“string” remap=<005f>=“string” remap=<0060>=“string”

/* [ key */ /* \ key */ /* ] key */ /* ^ key */ /* _ key */ /* ‘ key */ remap=<0061>=“string” remap=<0062>=“string” remap=<0063>=“string” remap=<0064>=“string” remap=<0065>=“string” remap=<0066>=“string” remap=<0067>=“string” remap=<0068>=“string” remap=<0069>=“string” remap=<006a>=“string” remap=<006b>=“string” remap=<006c>=“string” remap=<006d>=“string” remap=<006e>=“string” remap=<006f>=“string” remap=<0070>=“string” remap=<0071>=“string” remap=<0072>=“string” remap=<0073>=“string” remap=<0074>=“string” remap=<0075>=“string” remap=<0076>=“string” remap=<0077>=“string” remap=<0078>=“string” remap=<0079>=“string” remap=<007a>=“string”

/* a key*/ /* b key*/ /* c key*/ /* d key*/ /* e key*/ /* f key*/ /* g key*/ /* h key*/ /* i key*/ /* j key*/ /* k key*/ /* l key*/ /* m key*/ /* n key*/ /* o key*/ /* p key*/ /* q key*/ /* r key*/ /* s key*/ /* t key*/ /* u key*/ /* v key*/ /* w key*/ /* x key*/ /* y key*/ /* z key*/ remap=<007b>=“string” remap=<007c>=“string” remap=<007d>=“string” remap=<007e>=“string” remap=<007f>=“string”

/* { key */ /* | key */ /* } key */ /* ~ key */ /* Del key */ remap=<1031>=“string” remap=<1032>=“string” remap=<1033>=“string” remap=<1034>=“string” remap=<1035>=“string” remap=<1036>=“string” remap=<1037>=“string” remap=<1038>=“string” remap=<1039>=“string”

/* F1 key */ /* F2 key */ /* F3 key */ /* F4 key */ /* F5 key */ /* F6 key */ /* F7 key */ /* F8 key */ /* F9 key */

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

223

Page 248

Chapter 5, Customizing Your Configuration remap=<1042>=“string” remap=<1044>=“string” remap=<1045>=“string” remap=<1049>=“string”

/* Back Tab key */ /* Del key */ /* Enter key */ /* Insert key */ remap=<104c>=“string” remap=<1055>=“string” remap=<1056>=“string” remap=<105a>=“string”

/* Left key */ /* Up key */ /* Down key */ /* Right key */ remap=<1061>=“string” remap=<1062>=“string” remap=<1063>=“string” remap=<1064>=“string” remap=<1065>=“string” remap=<1066>=“string” remap=<1067>=“string” remap=<1068>=“string” remap=<1069>=“string” remap=<106a>=“string” remap=<106b>=“string” remap=<106c>=“string” remap=<106d>=“string” remap=<106e>=“string” remap=<106f>=“string”

/* F10 key */ /* F11 key */ /* F12 key */ /* F13 key */ /* F14 key */ /* F15 key */ /* F16 key */ /* F17 key */ /* F18 key */ /* F19 key */ /* F20 key */ /* F21 key */ /* F22 key */ /* F23 key */ /* F24 key */ remap=<1075>=“string” /* Page down key */ remap=<1076>=“string” /* Page up key */ remap=<2041>=“string” /* Auto-Login Restart key */ remap=<206c>=“string” /* Menu key */

224 remap=<304c>=“string” remap=<3055>=“string” remap=<3056>=“string” remap=<305a>=“string”

/* Window/viewport left key */ /* Window/viewport up key */ /* Window/viewport down key */ /* Window/viewport right key */ remap=<3061>=“string” remap=<3062>=“string” remap=<3063>=“string” remap=<3064>=“string” remap=<3065>=“string” remap=<3066>=“string”

/* Find key */ /* Insert here key */ /* Remove key */ /* Select key */ /* Previous screen key */ /* Next screen key */ remap=<3067>=“string” remap=<3068>=“string” remap=<3069>=“string” remap=<306a>=“string” remap=<306b>=“string” remap=<306c>=“string” remap=<306d>=“string” remap=<306e>=“string” remap=<306f>=“string” remap=<3070>=“string”

/* Keypad key */ /* Keypad Enter key */ /* Keypad 0 key */ /* Keypad 1 key */ /* Keypad 2 key*/ /* Keypad 3 key*/ /* Keypad 4 key*/ /* Keypad 5 key*/ /* Keypad 6 key*/ /* Keypad 7 key*/

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

Page 249

Chapter 5, Customizing Your Configuration remap=<3071>=“string” /* Keypad 8 key*/ remap=<3072>=“string” /* Keypad 9 key*/ remap=<3073>=“string” /* Keypad . key*/ remap=<3075>=“string” /* Page left key */ remap=<3076>=“string” /* Page right key */ remap=<3077>=“string” /* Keypad - key*/ remap=<3078>=“string” /* Keypad + key*/

Remapping Characters You can use display character translation files to remap characters as they are written to the display. The translation file name for VT/ANSI TE must be VT220.XLT. For instructions on how to download the file to the terminal, see “Downloading Files” on page 228. Display character translation files are binary files consisting of ordered pairs of eight bit values. Each pair of values remaps a displayable character to a different displayable character. S The first byte of a pair is the ASCII value of the character to replace. S The second byte of a pair is the ASCII value that replaces the first. These translations are only made when a character is written to a display device. If the character is sent to the host (such as keystroke or scan data) or sent to an external device (such as a printer), it is sent as the original, untranslated value. Suppose you want a terminal running VT/ANSI emulation to replace the uppercase B with the Greek letter beta, and replace the uppercase Z with the Greek letter omega. Create a file named VT220.XLT that is four bytes long (two ordered pairs of two bytes each). The file should contain the 0x42, 0xE1, 0x5A, and 0xEA bytes in this order. These represent the ASCII display character set values for B, beta, Z, and omega, respectively.

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide

225

Page 250

Chapter 5, Customizing Your Configuration

Implementing ITCCOLOR.DAT Attribute Colors Note: The ITCCOLOR.DAT attribute colors were implemented for WalMart Stores Incorporated. These changes are in place for the 5055 and CV60 Data Collection PCs and the 700 Series Computer. The registry keys for Text and Back are still in place for these terminals. You must name the file ITCCOLOR.DAT and you may place this where the other TE2000 configuration files are placed for discovery by the TE 2000 application. The two registry keys for the default foreground (Text) and background colors are still used and are set before the color file is read from the following keys: HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\TE2000\BackGroundColor HKEY_LOCAL_MACHINE\SOFTWARE\Intermec\TE2000\ForeGroundColor

Both keys must exist or the default colors of black background and white text is used. The color file contains lines defining the color Index and the Color for eight normal foreground (Text) and background (Back) color pairs and eight inverse color pairs for a total of 32 colors. Each line is a maximum of 80 characters. A line can be empty, have leading spaces, have a comment indicated by a semicolon character, have a pair of values (color Index and Color). All characters from a semicolon to the end of the line are ignored. A line is terminated by a carriage return, line feed character, or both. Invalid lines are ignored. You may define all, none, or any of the colors in the file and in any order. The file may exist or not. The normal Text colors are defaulted to black and the Inverse Text color is defaulted to black. If an Index-Color is not defined or the file does not exist, default colors are used. The color Index is a decimal value of 0 through 31. It specifies the character attributes associated with Color. The index values are documented in the sample ITCCOLOR.DAT file on the next page. Color is a 32-bit hex value used to specify an RGB color (0x00bbggrr). In RGB format, the low-order (rr) byte contains a value for the relative intensity of red; the second byte (gg)contains a value for green; and the third byte (bb) contains a value for blue. The high-order byte must be zero. The maximum value for a single byte is 0xFF.

226

TE 2000 VT/ANSI Terminal Emulation Programmer’s Guide