ContentsIndexPreviousNext

Function 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 of Keys in the "Setting Up Your Terminals" chapter 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.

The User-defined keys ("U1" - "U0" on DOS) ("U1" - "U6" on Windows) are available for any keys that are not defined in the "Table of Keys," which is in the "Setting Up Your Terminals" chapter. 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|vt100|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: