Microsoft KB Archive/45544

Default Key Combinations for the ADIS Keys on the IBM Keyboard

PSS ID Number: Q45544 Article last modified on 04-20-1993

3.00 3.00a | 3.00 3.00a MS-DOS | OS/2

Summary: In COBOL Versions 3.0 and 3.0a, there are 27 ADIS keys. Each of these is “mapped” onto one of the functions described in ADISCF.EXE. This means that when that key is pressed, it performs the function it was mapped to. What is often confusing when you first encounter ADISCF is that the ADIS keys themselves are given names, which are used to distinguish the different keys. The following list gives the names of the ADISCF keys and how to obtain them on the IBM PC keyboard: Key Number ADISCF Key Name Actual Keystrokes —— ————— —————– 0 Terminate accept None 1 Terminate program CTRL+K 2 Carriage return ENTER 3 Cursor left LEFT ARROW 4 Cursor right RIGHT ARROW 5 Cursor up UP ARROW 6 Cursor down DOWN ARROW 7 Home HOME 8 Tab TAB 9 Back tab SHIFT+TAB 10 End END 11 Next field None 12 Previous field None 13 Change case CTRL+F 14 Rubout character BACKSPACE 15 Retype character CTRL+Y 16 Insert character CTRL+O 17 Delete character DEL 18 Restore character CTRL+R 19 Clear to end of field CTRL+Z 20 Clear field CTRL+X 21 Clear to end of screen CTRL+END 22 Clear screen CTRL+HOME 23 Set insert mode INS 24 Set replace mode None 25 Reset field CTRL+A 26 Start of field None

More Information: The keystrokes listed are the default as shipped with COBOL. However, these can easily be changed using KEYBCF.EXE. ADISCF allows you to change the functions, while KEYBCF allows you to change the keystrokes that the functions map to. The following are the ADISCF steps to change the functions: 1. Run ADISCF.EXE. 2. Choose the “F2 = Alter” option. 3. Choose the “F8 = Key Control” option. 4. Choose the “F2 = Enable/Disable ADIS Keys” option. 5. Choose the “F3 = Function Mappings” option. In the “Function Mappings” option, you can change the function mapping of the ADIS keys. The function name describes the action of the keystroke and also has a function number associated to it. The “Alter Function Mappings” screen allows you to reassign the action of a function. For example, you can map the action of the “Return Key” to the “Move to Next Field” by changing the mapped field to 11 for the “Return Key”. The following are the KEYBCF steps to change the key combination of a key: 1. Run KEYBCF.EXE. 2. Choose the “2. Alter function key definitions” option. 3. Choose the “1. Alter ADIS Keys” option. 4. Press the SPACEBAR until you are at the function key you want to change. 5. Press the key combination to which you want to map the function key, and the hexadecimal code for that key combination will be entered for the key name.

Additional reference words: 3.00 3.00a Copyright Microsoft Corporation 1993.