IBM 3151 Emulation

Defining Function Keys

The keys mapped as F1 through F12 can be redefined from the keyboard or by the host. The function keys can store up to 128 characters between them and can include escape sequences and ASCII control characters in addition to character strings. Here we describe how to define a function key from the keyboard.

1. Display the function key menu by pressing the keys Shift + Esc.

DEF F: __ .........................................................................................................................

Field A

Field B

2.Specify the function key to be defined by entering a two-digit number in field A, for example, 01 for F1, 12 for F12, then press Enter. Field B will display the current definition of the function key.

DEF F: 01

EC

...................................................................................................................a

AID

3.In field B, enter the new definition for the function key. This can include a character string, escape sequence or control characters.

A control character is entered by typing the keyboard equivalent. For example, the CR (carriage return) character is entered by pressing Ctrl + M. Refer to the Character Sets appendix to find the keyboard equivalents of other control characters.

The following example shows the definition entry for the F1 key so that it displays New definition then performs a carriage return when pressed:

DEF F: 01 Pericom SoftwareCR ..........................................................................................

You can erase the character at the current cursor position by pressing the keys Ctrl + 2. If you want to restore the default definition, press the Clear key while the cursor is in field B.

4.Press the Send key to store the key definition. The function key menu will be cleared to allow you to enter the next key definition. If you do not wish to save the definition, press Ctrl + Shift + Esc instead of Enter.

Note that the function keys can store a maximum of 128 characters between them. When this number is reached or exceeded, field A will start blinking and any characters following the 128th character will be discarded.

5.Repeat steps 2 to 4 until you have finished defining function keys.6.To exit from the function key menu, press Ctrl + Shift + Esc.

11-6