|
Ansi.sys is an enhancement of the "CON" device driver built into Command.com. It can be used to modify the default display colours, the starting position of the cursor, and the mapping of keys. It can also be used to change the video mode.
Syntax
Ansi.sys can only be loaded in Config.sys using a Device or DeviceHigh statement:
Device=[Path]Ansi.sys [/X] [/K] [/R] or
DeviceHigh=[Path]Ansi.sys [/X] [/K] [/R]
| [Path] |
The full path. Default is the root directory of the start-up drive (usually C:/) |
| /X |
Enables remapping of the extended keys on a 101-key keyboard. |
| /K |
Causes a 101-key keyboard to behave as an 84-key keyboard. |
| /R |
Reduces the scrolling speed when long documents are printed to the screen. |
Notes
For reasons beyond my comprehension, the designers of ANSI.SYS decided that all commands issued to it would be prefixed with the ASCII code assigned to the "Esc" key followed by an opening square bracket ( [ ). Unfortunately, the designers of Command.com had already reserved the "Esc" key as a means of cancelling the current command line. It is thus impossible to send an ANSI.SYS command directly from the DOS command line. Three ways to overcome this rather peculiar conflict have been developed:
|