11.2.1 Defining Function and Special Keys

The first section starts out by asking how many function keys there are. Function keys are those labeled <F1>, <F2>, and so forth. Enter the number of function keys available, and press RETURN.

Interactive C/Base programs require at least four function keys. If your terminal has fewer than four function keys, you must define some other keys or sequence of keys to take their place in order for the software to function properly.

Interactive C/Base programs accept the following substitute key sequence for the function keys <F5>, <F6>, <F7>, and <F8> if your terminal has only four function keys:

Key Sequence may be used Function Key

to replace

<F1> 7 <F5>

<F1> 8 <F6>

<F1> 9 <F7>

<F1> - <F8>

Once termset knows how many function keys exist, termset asks you to press each function key. When this is done, termset displays the characters sent by the keyboard on the screen. At this point, you must key the delimiter to indicate the end of your response. Now that the definition for a function key is complete, the program asks for the next function key to be pressed. Press the appropriate function key followed by the delimiter. This process is repeated once for each function key, according to the total number of function keys specified in your earlier response.

Next, termset asks that other special keys be pressed. These keys include the Arrow keys and other special keys. Respond to these questions in the same manner, (i.e., by pressing the specified key, and then the delimiter). Termset may ask for keys such as Insert Line or Delete Line that are not on the keyboard of your terminal. In that case, you may simply key-in the delimiter, indicating to termset that there is no such key. You may instead, however, define some other key or sequence of keys as one of these special keys, thus enabling you to use the function provided for by that key. (Note: This should be some unused key or sequence of keys to avoid any potential conflict.) A good example would be a keyboard that has more than eight function keys, but no Insert Line or Delete Line keys. Since the C/Base software uses at most eight function keys, the <F9> and <F10> keys could be defined as the Insert Line and Delete Line keys, respectively.