Function Keys - Termcap Reference

The following are the default termcap values recognized for the function keys and labels:

k1..k0 kA..kV

values for function keys in the range 1..32

l1..l0lA..lV

labels for function keys in the range 1..32

The strings defined by the "kA..kV" and "lA..lV" are not standard termcap functions and are used to extend the mappable function key range to 32. The extension "ka" is not recognized as a function key, and "la" is not recognized as a function key label.

If the ALIAS line of the config.bbx file contains the mode "K0", the old style function key mappings (termcap k0 defines the first function key) are used. In this case, the termcap values recognized for the function keys and labels are:

k0..k9 kA..kV

values for function keys in the range 1..32

l0..l9lA..lV

labels for function keys in the range 1..32

Edit Keys

The following termcap values are recognized for the edit key set:

Key#

Key

Label

Usage Note

0

kl=str

left

If same as a backspace may be ignored

1

kr=str

right

 

2

ku=str

up

 

3

kd=str

down

If same as a linefeed may be ignored

4

kh=str

home

(not XENIX "HM" capability)

5

EN=str

end

XENIX extension

6

PU=str

pg-up

XENIX extension

7

PD=str

pg-dn

XENIX extension

8

IN=str

insert

Non-standard

9

DL=str

delete

Non-standard

NOTE: Some XENIX systems translate the termcap DL capabilities as "delete multiple lines."

Other Keys

The termcap ko string is used to recognize those keys that do not fit into the PRO/5 key mapping. A typical ko entry might read:

:ko=ic,dc,al,dl:

to indicate the presence of insert and delete character and insert and delete line keys on the keyboard. The string describes the termcap names of functions that the terminal may send.

Usage of the ko capability may assist in removing extraneous key sequences from the input stream. If sequences may be sent by the terminal that are not referenced by an entry in termcap, temporary entries may be added and referenced in the ko string.