Function keys in curses (BSD)

Doug Gwyn gwyn at brl-smoke.ARPA
Fri Mar 4 07:51:18 AEST 1988


In article <10800020 at bradley> brad at 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.



More information about the Comp.unix.questions mailing list