Generate/VShellIcon.gif  Create a Keymap


The following information describes how you can create a keymap.

Many DOS applications, such as Edit, require the use of "Alt sequences" (the Alt key in combination with another key or keys). However, unlike most key sequences on the keyboard, there is no standard way to send an Alt sequence. In order to work around this problem, VShell expects the client to send the following sequence of three bytes.

377 <mod> < vk>

The first byte is 377 octal (255 decimal).

The second byte is 0 or modifiers combined using an OR function. The following are the octal values for common modifiers:

Generate/BULLET1.gif    100 - Extended

Generate/BULLET1.gif    004 - ALT

Generate/BULLET1.gif    002 - CTRL

Generate/BULLET1.gif    001 - SHIFT

The third byte is the Windows virtual key (see Virtual Key Values for more information).

For example, to represent ALT+A, the sequence in octal would be:

377 004 101

Related Topics