Set up an APPX character-mode keymap
AppxKEYS records the key codes sent by a terminal or emulator. Use the actual keyboard and terminal settings that the user will have.
Make and test a keymap
- Choose a keymap name and decide whether the mapping is shared or user-specific. Plan which physical keys will perform Enter, End, Cancel and the other APPX options.
- Run the keyboard definition utility in that terminal. Respond to each prompt with the key or key combination you want APPX to recognize.
- Start a character-mode session with that keymap and test the options. For desktop GUI shortcuts, use the GUI Client Keymap.
AppxKEYS is a utility program embedded in APPX that allows a user to create an APPX keyboard layout for character mode connections. The keyboard layout for GUI clients cannot be changed.
APPX uses several keys on your keyboard that perform functions ("options") unique to APPX. The layout defines which keys will be used to construct each APPX Option.
Keyboard layouts can be created for each type of terminal on your system, and individual layouts can be created for each user if necessary. The utility prompts the user to press approximately three dozen keys. As each key is pressed, AppxKEYS records the codes sent out and uses them to construct a suite of keystroke combinations for accessing APPX options that is tailored to your terminal, operating system, and/or emulation software.
The following steps are required for building a keyboard layout are:
There are several things to bear in mind when planning your keyboard:
* For future use and not currently implemented.
To select an APPX User option from "0" to "9":
- Plan your layout.
- Decide on a User ID.
- Run APPX using the -k option.
- Define each APPX fundamental key.
- Test your layout.
AppxKEYS Requirements
The following three system environment variables (or their equivalents) should be set:- APPXPATH which identifies the location of data files
- PATH which identifies the location of programs
- TERM which indicates the type of terminal being used
Planning Your Layout
APPX requires that a non-alphanumeric key (or key combination) be assigned to each of the twenty-five (25) APPX fundamental keys. The fundamental keys, either by themselves on in combination, are used to access virtually all APPX Options. In addition, the program will ask you to assign keys to the digits 0 through 9 to be used in selecting User Options (menu items). Table 1 lists the twenty-five (25) fundamental keys and their common assignments on some keyboards.Table 1: The Twenty-five Fundamental Keys and their Common Assignments on Some Keyboards
These are suggested assignments. Record and test the keys on the terminal or emulator you use. On the DEC VT320, Keyboard Set-Up determines whether the backarrow key sends BS or DEL. On the IBM 3151 example, Jump is the key assigned to OPTION.
| APPX Fundamental Key | DEC VT320 Keyboard | IBM PC/AT 101-Key Keyboard | IBM 3151 Keyboard | IBM aixterm Keyboard |
|---|---|---|---|---|
| BACKSPACE | Backarrow key | Backspace | Backspace | Backspace |
| END | F10 | End or F8 | F8 | F8 |
| RETURN/ENTER | Return | Enter | Return | Return |
| TAB | Tab | Tab | Tab | Tab |
| OPTION | PF1 | Keypad + | Jump | ` (accent) |
| GO | Do | Home | Esc | Esc |
| PAN | PF3 | Keypad - | F6 | F6 |
| SCROLL | PF4 | Keypad * | F7 | F7 |
| CURSOR UP | Up arrow | Up arrow | Up arrow | Up arrow |
| CURSOR RIGHT | Right arrow | Right arrow | Right arrow | Right arrow |
| CURSOR DOWN | Down arrow | Down arrow | Down arrow | Down arrow |
| CURSOR LEFT | Left arrow | Left arrow | Left arrow | Left arrow |
| INSERT | Insert Here | Insert | Insert | Insert |
| DELETE | Remove | Delete | Delete | Delete |
| SCAN | Find | F2 | F2 | F2 |
| SELECT | Select | F3 | F3 | F3 |
| HELP | Help | F1 | F1 | F1 |
| PREVIOUS IMAGE | F8 | F4 | F4 | F4 |
| NEXT RECORD | F9 | F5 | F5 | F5 |
| ADD MODE | F11 | F9 | F9 | F9 |
| DELETE MODE | F12 | F10 | F10 | F10 |
| INQUIRE MODE | F13 | F11 | F11 | F11 |
| CHANGE MODE | F14 | F12 | F12 | F12 |
| PREV SCREEN | PrevScreen | Page Up | Jump, then Up arrow | Page Up |
| NEXT SCREEN | NextScreen | Page Down | Jump, then Down arrow | Page Down |
- Certain keys, such as GO, OPTION, and END are used a great deal in APPX. Make sure they are in convenient locations.
- Keys on many keyboards can be affected with Shift, Alternate, and Control, thus giving you extra keys to work with. Take care to avoid Control and Alternate combinations already mapped by your operating system or APPX.
- The keys on some terminals send out different codes (or nothing at all) based on their setup mode. Try to select terminal setup parameters that maximize the number of unique keys you can use. For instance, the cursor keys are inoperative on an HP700 terminal using HP emulation, and the Insert key is inoperative on an IBM 3151 when its function is set to "mode." Either of these configurations will make the keyboard hard to map and inconvenient to use.
- Many keyboards will not "shift" the Fx or PFx function keys when Shift is used.
- Two or more keys pressed in succession can be used to define an APPX fundamental key in situations where a unique key cannot be found or is inappropriate. For instance, some IBM 3151 terminals do not have a Next Page or Next Screen key. You may have to create a unique substitute, such as OPTION-DOWN.
- There is no harm done if your keyboard layout doesn't work. Some experimentation may be required until you find out what your terminal's keyboard can and cannot do. Remember that Control-E is always mapped as an END key to gracefully shut down APPX in case of a botched layout.
Running AppxKEYS
To run the program, type the following from the operating system prompt: appx -k For proper operation, AppxKEYS should be run from the actual terminal for which a layout is being defined (or for generic layouts, a representative of a group of identically configured terminals and types). This is the only way to assure that key code translations or interceptions by the operating system are accounted for. When run correctly, AppxKEYS displays the release number, release date, and a brief description of the program. If a keyboard layout already exists for your terminal type and User TD combination, a warning is displayed informing you that the existing layout will be overwritten. The first screen will also display the terminal type and APPX User ID to which the Keyboard layout will be assigned. A User TD of "any" refers to the generic layout. If a layout already exists, a warning will appear informing you that your new layout will be overwriting a layout that is already on disk. If you want to continue, press "Y" or "y" for YES, "N" or "n" for NO (the RETURN key is unnecessary). If you answer NO, the program will exit immediately. You will be given a further warning later in the program just before the layout is overwritten, and given a chance to change your mind. On most operating systems, the program will next prompt you for an END OF ENTRY key. This is the key that you will use to tell AppxKEYS that you have finished defining a fundamental key and that you wish to move on to the next. This key can be any standard key on your keyboard and even a few of the special keys, such as Tab or Return. It is important to try to pick an END OF ENTRY key that sends out a code that is NOT contained in the control sequences sent out by any other key that you need to define. This may require some experimentation. In general, the space bar works on most terminals (the IBM 3151 being a notable exception -- try the period key instead). The selection of an END OF ENTRY key does not mean you cannot use this key as an APPX fundamental key. If AppxKEYS receives only the END OF ENTRY key during a key definition, it assumes you wish to use it as the definition, not just as a terminator.Defining Fundamental Keys
The steps in defining each fundamental APPX key are:- Program issues a prompt for the fundamental key.
- Press the appropriate key(s) on your keyboard.
- Press the END OF ENTRY key.
- Program displays codes that were actually received from keyboard.
- Program checks for errors and prompts user to fix any errors found.
- If the code for your END OF ENTRY KEYS is embedded in the codes sent out by one of the special keys on your keyboard, the program proceeds automatically to the next prompt without your having to press END OF ENTRY. If this occurs, back up and re-enter the sequence using a different key, or rerun the program again using a different END OF ENTRY. The keyboard layout will not work "as is."
- AppxKEYS supports up to twenty-five (25) key codes per key definition.
- If the first character of your fundamental key definition is a printable ASCII character (one of the normal letters, numbers and symbols on a typewriter), you will be warned that if you use the definition, this character will not be able to be entered into any APPX text or data field.
Table 2: Common APPX Options
- Acknowledge Delete
- GO
- DELETE MODE
- Add Mode
- ADD MODE
- Back Tab
- GO
- TAB
- Cancel
- GO
- END
- Change Mode
- CHANGE MODE
- Cut
- GO
- - (minus)
- Delete to Item Beginning
- Ctrl U
- Delete Current Char
- DELETE
- Delete to Item End
- GO
- DELETE
- Delete Mode
- DELETE MODE
- Delete Previous Char
- BACKSPACE
- Direct Process l
- GO
- KEY PAD 1
- Direct Process 2
- GO
- KEY PAD 2
- Down
- CURSOR DOWN
- End
- END
- End Paragraph
- GO
- RETURN
- Enter
- RETURN
- Alternative for Enter
- Ctr1 M
- Find Pattern *
- GO
- SCAN
- Help Item
- HELP
- Help Option
- GO
- HELP
- Inquiry Mode
- INQUIRY MODE
- Insert
- INSERT
- Left
- CURSOR LEFT
- Move to Field Beginning
- GO
- CURSOR LEFT
- Move to Field End
- GO
- CURSOR RIGHT
- Next Record
- NEXT RECORD
- Paste
- GO
- Previous Activity
- PREVIOUS IMAGE
- Print Screen *
- GO
- p
- Right
- CURSOR RIGHT
- Redraw Line
- Ctrl R
- Redraw Screen
- Ctrl W
- Redisplay
- GO
- BACKSPACE
- Scan
- SCAN
- Set Attributes
- GO
- SELECT
- Show Messages
- GO
- M or m
- Select
- SELECT
- Split (Insert Text)
- GO
- INSERT
- Tab
- TAB
- Up
- CURSOR UP
Panning and Scrolling Operations
Panning and scrolling operations are done in two steps:- Press the PAN or SCROLL key one to three times.
- Press a cursor direction key.
Table 3: Panning Options
- Pan to Top
- PAN
- PAN
- PAN
- CURSOR UP
- Pan Up 1 Screen
- PAN
- PAN
- CURSOR UP
- Pan Up 1 Row
- PAN
- CURSOR UP
- Pan Down 1 Row
- PAN
- CURSOR DOWN
- Pan Down 1 Screen
- PAN
- PAN
- CURSOR DOWN
- Pan to Bottom
- PAN
- PAN
- PAN
- CURSOR DOWN
- Pan Left Margin
- PAN
- PAN
- PAN
- CURSOR LEFT
- Alternative for Pan Left Margin
- GO
- CURSOR LEFT
- Pan Left 1 Screen
- PAN
- PAN
- CURSOR LEFT
- Pan Left 1 Column
- PAN
- CURSOR LEFT
- Pan Right 1 Column
- PAN
- CURSOR RIGHT
- Pan Right 1 Screen
- PAN
- PAN
- CURSOR RIGHT
- Pan Right Margin
- PAN
- PAN
- PAN
- CURSOR RIGHT
- Alternative for Pan Right Margin
- GO
- CURSOR RIGHT
Table 4: Scrolling Operations
- Scroll First screen
- SCROLL
- SCROLL
- SCROLL
- CURSOR UP
- Alternative for Scroll First screen
- GO
- CURSOR UP
- Scroll Previous Screen
- SCROLL
- SCROLL
- CURSOR UP
- Alternative for Scroll Previous Screen
- PREV SCREEN
- Scroll Up
- SCROLL
- CURSOR UP
- Scroll Down
- SCROLL
- CURSOR DOWN
- Scroll Next Screen
- SCROLL
- SCROLL
- CURSOR DOWN
- Alternative for Scroll Next Screen
- NEXT SCREEN
- Scroll Last
- SCROLL
- SCROLL
- SCROLL
- CURSOR DOWN
- Alternative for Scroll Last
- GO
- CURSOR DOWN
- Press OPTION
- Press the fundamental number key from "0" to "9".
- Press the OPTION key twice.
- Enter the Option number from "10" to "99".