Programming instructions
139
Intermec Fingerprint 6.13 – Programmer's Guide
1. Keyboard, cont'd.
15. PRINTER FUNCTION CONTROL, cont'd.
Remapping the Keyboard, cont'd.
You can also use the KEYBMAP$ instruction to remap the
keyboard, using the following syntax:
KEYBMAP$(n) = <string> where...
n = 0 maps the unshifted characters in ascending pos. No. order.
n = 1 maps the shifted characters in ascending pos. No. order.
n = 2 maps the position of the Shift key.
The string that contains the desired keyboard map should contain
the desired character for each of 64 key positions (in ascending
order) regardless if the keyboard contains that many keys.
Characters, that cannot be produced by the keyboard of the host, can
be substituted by CHR$ functions, where the character is specified
by its ASCII decimal value according to the selected character set
(see NASC statement). The same applies to special characters. See
table below.
Non-existing key positions are mapped as Null, i.e. CHR$(0).
The key appointed as <Shift> key is specified by its keyboard
position number in a separate string.
The single <Print> key of EasyCoder 401/501 cannot be remapped.
ASCII decimal values for Special Keys
Special key Unshifted Shifted Special key Unshifted Shifted
F1 1 129 Ins 18 146
F2 2 130 ⇐ 19 147
F3 3 131 ⇒ 20 148
F4 4 132 Feed 28 156
F5 5 133 Setup 29 157
C (Clear) 8 136 Pause 30 158
Enter 13 141 Print 31 159
Alt 14 142 Del 127 255
Save 15 143 Shift 144
Caps 17 145
In this example, the unshifted keyboard map is read back to the host.
The string is modified (<F1> is replaced by <Feed>) and used to
change the keyboard map.
10 A$ = KEYBMAP$(0)
20 B$ = CHR$(28) + MID$(A$,2)
30 KEYBMAP(0)=B$
40 END
Continued!