Intermec 6100 Guia De Referência

Página de 328
APPENDIX B
Common PEN*KEY 6000 Series Information
PEN*KEY
R
 6100 Computer Programmer’s Reference Guide    B-11
}
} // end APMCPUIdle
void main(void) {
printf(“Result of CPU Idle call: %2.2X\n”, APMCPUIdle());
return;
}
Keyboard Remapping, with ANSI.SYS
Another way to remap the keyboard is to use ANSI.SYS, which should work on
any computer that supports ANSI.SYS.  This is a very portable way to remap
keys.  ANSI.SYS works the same across all PCĆcompatible platforms.  It provides
the capability of reassigning keys, through the use of escape sequences.  An esĆ
cape sequence is a string of text that begins with two preliminary keys: the esĆ
cape character and the leftĆbracket character ]".  Refer to DOS help or to the UsĆ
ing ANSI.SYS paragraph, below, for additional information on composing the
remapping strings for use with ANSI.SYS.
Each key on the keyboard has a specific key code.  Refer to any standard keyĆ
board interface definition to determine keycodes for the keys.
Example Key Redefinition
The following example demonstrates one way to remap function keys F1ćF10,
using ANSI.SYS.  This method remaps any key by supplying the appropriate key
numbers in place of the 0;xx", where 0;xx" is the key code (such as 0;59).
Add the following line to your CONFIG.SYS file where the /x switch selects keyĆ
board redefinition, as specified in the DOS Help for ANSI.SYS:
device=c:\dos\ansi.sys /X
Add the following assignments (with any modifications) that you prefer to suit
your needs) to your AUTOEXEC.BAT file, to set these mappings each time your
system is powered up or reset:
echo on
prompt $<–[0;59;“INTERSVR C: D:”;13p
prompt $<–[0;60;“DIR”;32p
prompt $<–[0;61;“BIOS”;32p
prompt $<–[0;62;“CD”;32p
prompt $<–[0;63;“COPY”;32p
prompt $<–[0;64;“DEL”;32p
prompt $<–[0;65;“RAMDFMT”;32p
prompt $<–[0;66;“C:”;13p
prompt $<–[0;67;“EXIT”;13p
prompt $<–[0;68;“D:”;13p
prompt $p$g
Explanation of Example
The listing above is shown is as it will appear, if you create it with a DOS text
editor, such as EDIT.COM.  The small arrow (<-) after the prompt $" (repreĆ
senting the escape character) is in EDIT.COM with one character.  In most text
editors, the escape character is produced by pressing [CtrlĆP], then the [Esc] key.
The escape character may be produced and displayed differently, depending on
the text editor you are using.
In the first prompt $" line, the 0;59" indicates that the [F1] key is assigned the
quoted text INTERSVR C: D:".  The 13p indicates that the [Enter] key is added
after the text.  Some of the lines use 32p at the end, which indicates that a space
is added after the quoted text, which allows the operator to add other parameĆ
ters.  Then the [Enter] key can be pressed after all parameters are added.
B. Common PEN*KEY
6000 Series Info.