[comp.unix.questions] Function keys in curses

brad@bradley.UUCP (03/01/88)

Question:

	in /etc/termcap is 'k0' function key #1 on the terminal or
	is 'k1' the function key #1 (ie most terminals I have seen
	have function keys label f1-f8).  The manual seems to have
	them going k0-k9.

gwyn@brl-smoke.ARPA (Doug Gwyn ) (03/04/88)

In article <10800020@bradley> brad@bradley.UUCP writes:
>	in /etc/termcap is 'k0' function key #1 on the terminal or
>	is 'k1' the function key #1 (ie most terminals I have seen
>	have function keys label f1-f8).  The manual seems to have
>	them going k0-k9.

You should start assigning function keys at k0.  The corresponding
labels should be assigned to l0 etc.  The key labels need not have
anything to do with the sequence number of the capability.  For
example, on a VT100, PF1 can be described by k0 and l0.

Because this is usually done wrong, termcap-using software should
not assume this scheme was correctly followed.