Function and Edit Keys

PRO/5 considers a terminal to have two groupings of loadable keys on the keyboard. This requires two different mnemonics to reference the different groups. The 'FL' mnemonic specifies that you are dealing with the function keys. These are the keys normally labeled with either 'F' or 'PF'.

The 'EL' mnemonic specifies that you are dealing with the keys outside of the 'function' keys. These keys would include cursor keys and edit operation keys, and are referred to here as "edit keys."

Either of the key load mnemonics is followed by a parameter string that contains a function code and any additional parameters required for that function. The function code must be the first byte of the string.

For the UNIX operating system, the function and edit key numbers used to identify the keys to be loaded are as follows:

Hexadecimal Key Numbers

Function key as defined by termcap (use with 'FL' mnemonic)

00 - 09

F1 through F10

0A - 13

Shift + F1 through F10

14 - 1D

Control + F1 through F10

1E - 27

Alt + F1 through F10

Decimal

0-31 Termcap keys k1 through k9, k0, kA through kU

Hexadecimal Key Numbers

Edit keys as defined by termcap (use with 'EL' mnemonic)

Termcap

00

left arrow

k1

01

right arrow

kr

02

up arrow

ku

03

down arrow

kd

04

Home key

kh

05

End key

EN

06

Page Up

PU

07

Page Down

PD

08

Insert

IN

09

Delete

DL

For MS-DOS without an extended keyboard, the function and edit key numbers used to identify the keys to be loaded are shown below. The configuration file alias line that defines the terminal must NOT contain "ekb" in the MODE= statement. See PRO/5 Workstations Under MS-DOS and MS-DOS Networks in the Installation and Configuration Guide for more details.

Hexadecimal Key Numbers

Function keys as defined by termcap (use with 'FL' mnemonic)

00 - 09

F1 through F10

10 - 19

Shift + F1 through Shift + F10

20 - 29

Ctrl + F1 through Ctrl + F10

30 - 39

Alt + F1 through Alt + F10

Hexadecimal Key Numbers

Numeric keypad edit keys as defined by termcap (use with 'EL' mnemonic)

00

Left arrow

01

Right arrow

02

Up arrow

03

Down arrow

04

Home

05

End

06

PgUp

07

PgDn

08

Ins

09

Del

For MS-DOS with an extended keyboard, the function and edit key numbers used to identify the keys to be loaded are shown below. To use the extended keyboard, the configuration file alias line that defines the terminal must contain "ekb" in the MODE= statement.

Hexadecimal Key Numbers

Function keys as defined by termcap (use with 'FL' mnemonic)

00 - 11

F1 through F12

12 - 23

Shift + F1 through Shift + F12

24 - 33

Ctrl + F1 through Ctrl + F12

34 - 43

Alt + F1 through Alt + F12

Hexadecimal Key Numbers

Edit keys as defined by termcap (use with 'EL' mnemonic)

00

Left arrow (Numeric keypad)

01

Right arrow (Numeric keypad)

02

Up arrow (Numeric keypad)

03

Down arrow (Numeric keypad)

04

Home (Numeric keypad)

05

End (Numeric keypad)

06

PgUp (Numeric keypad)

07

PgDn (Numeric keypad)

08

Ins (Numeric keypad)

09

Del(Numeric keypad)

10 - 19

Ctrl + Numeric keypad edit keys above

20 - 29

Editing keypad versions of Numeric keypad edit keys

30 - 39

Ctrl + Editing keypad keys

40 - 49

Alt + Editing keypad keys

50

Ctrl + / (Numeric keypad)

51

Ctrl + * (Numeric keypad)

52

Ctrl + - (Numeric keypad)

53

Ctrl + + (Numeric keypad)

54

Alt + / (Numeric keypad)

55

Alt + * (Numeric keypad)

56

Alt + - (Numeric keypad)

57

Alt + + (Numeric keypad)

58

Alt + Enter (Numeric keypad)

59

Alt + Esc

60

Shift + Tab

61

Ctrl + Tab

62

Alt + Tab

63

Alt + Backspace

64

Alt + Enter (Character keypad)

65

Ctrl + Print Screen

66

Numeric keypad 5 (Without NumLock)

67

Ctrl + 5 (Numeric keypad with or without NumLock)

In addition, for MS-DOS with or without MODE="ekb", the Alt of any printable key (shifted or unshifted) may be loaded using the 'EL' mnemonic and adding 128 to the decimal ASCII value of the character printed by the key. For alphabetic characters (A - Z), add 128 to the decimal ASCII value of the upper case character. For all other printable keys, add 128 to the decimal ASCII value of the unshifted character printed by the key. For example, since the decimal value of "A" is 65 and 65 + 128 = 193, a PRINT 'EL' statement with key 193 will assign a string to both Alt + A and Alt + a. Since the decimal ASCII value of "4" is 52 and 52 + 128 = 180, a PRINT 'EL' statement with key 180 will assign a string to both Alt + 4 and Alt + $.