Customizing Your ConfigurationChapter —5
234 TE 2000
5250 Terminal Emulation Programmer’s Guide
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 251.
You may need to remap the terminal’s keys if your users need to press a
key in 5250 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 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 f ile that remaps a single key or a two-key sequence.
You can remap any terminal key or two-key sequence that does not per-
form 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 two-
key sequence )[becauseitmovesthewindow/viewportuponthe
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 236. The key
code table gives the 4-digit hex adecimal codes for ASCII characters for the
terminals. These codes identif y 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
[CTRL] [B] None 0002
Remapping a Key or Two-Key Sequence
Note: F or terminals made bef ore 1997, refer to the “Using F LSHCONV”
section for the proper -e parameter value.
1 Choose the key or two-key sequence to remap and determine the cur-
rent 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
linesinthisformat:
remap=<key>=”string” or remap=<key>=<key>
S remap is the command you enter in REMAP.CFG.
S key is the 4-digit hex adecimal key or keys to which or fr om which
you are remapping.