contents.gifindex.gifprev1.gifnext1.gif

4.6.5 Function Keys and Other Keys

Function keys and other special keys are simple to deal with. The various key entries are set to the values that those keys send when they are pressed. All of the key entries are optional. The table at the beginning of this section lists all of the available key codes.

As a minimum, you should define the arrow keys and some function keys. Most programs use these keys.

User-defined keys

The User-defined keys ("U1" - "U0") are available for any keys that are not defined in the table above. These can be used for special purposes.



The VT-100 has the four arrow keys and function keys 1 through 4. The function keys send "ESCO" followed by a distinguishing character, and the arrow keys send "ESC[" and a distinguishing character. The new entry is:

vt100|vt-100|DEC VT-100 :\
:cl=\E[;H\E[2J:ce=\E[K:cd=\E[J:\
:cm=\E[%i%d;%dH:nd=\E[C:\
:LO=\E[m:HI=\E[0;1m:RV=\E[7m:\
:UL=\E[4m:BL=\E[5m:RU=\E[4;7m:\
:RB=\E[5;7m:DL:\
:k1=\EOP:k2=\EOQ:\
:k3=\EOR:k4=\EOS:ku=\E[A:\
:kd=\E[B:kr=\E[C:kl=\E[D: