Terminal Description Fields

A terminal description field starts with a mnemonic followed by a command string or value. The mnemonic tells the parser what capability the command string accesses or what the value represents. Mnemonics that are supported by Vermont Views are listed in Table 58.1.

There are four types of terminal description fields: boolean, numeric, char, and string.

Table 58.1: Mnemonics Supported in Vermont Views

Mnemonic Type Description
Aka - Akz * TDF_STR Generates KEY_AA, KEY_AB,... KEY_AZ keycodes
BB * TDF_STR Enter blink mode
bc TDF_STR Generates KEY_BACK keycode
BE * TDF_STR Bell character
BG TDF_INT Allow use of blink mode
BR * TDF_STR Exit blink mode
bt TDF_STR Generates KEY_STAB keycode
CA * TDF_BOOL Terminal clears screen with current attribute (if you do not specify and this capability is available, full-screen clears with attributes other than NORMAL or LSYS will be slow)
CB TDF_STR Make cursor shape a block
CF * TDF_STR Cursor off
Ck0 - Ck39 * TDF_STR Generates KEY_CF1, KEY_CF2,... KEY_CF40 keycodes
Cka - Ckz * TDF_STR Generates KEY_CA, KEY_CB,... KEY_CZ keycodes
cl TDF_STR Clear screen (will improve speed)
CL TDF_STR Make cursor shape a line
cm TDF_STR Cursor motion
co TDF_INT Number of columns
CO * TDF_STR Cursor on
ct * TDF_BOOL Terminal supports color (some terminals)
DL TDF_STR Generates KEY_DEL keycode
EN * TDF_STR Generates KEY_END keycode
ESC * TDF_STR Generates KEY_ESC keycode
G1 * TDF_CHAR Single line upper-right corner character
G2 * TDF_CHAR Single line upper-left corner character
G3 * TDF_CHAR Single line lower-left corner character
G4 * TDF_CHAR Single line lower-right corner character
G5 * TDF_CHAR Double line upper-right corner character
G6 * TDF_CHAR Double line upper-left corner character
G7 * TDF_CHAR Double line lower-left corner character
G8 * TDF_CHAR Double line lower-right corner character
GC * TDF_CHAR Single line intersection character +
Gc * TDF_CHAR Double line intersection character +
GD * TDF_CHAR Single line intersection character -
Gd * TDF_CHAR Double line intersection character -
GE * TDF_STR Exit block graphics mode
GG * TDF_INT Number of blank characters taken by GS, GE
GH * TDF_STR Single line horizontal bar character D
Gh * TDF_CHAR Double line horizontal bar character M
GL * TDF_CHAR Single line intersection character ¦
Gl * TDF_CHAR Double line intersection character ¦
GR * TDF_CHAR Single line intersection character +
Gr * TDF_CHAR Double line intersection character ¦
GS * TDF_STR Enter block graphics mode
GU * TDF_CHAR Single line intersection character -
Gu * TDF_CHAR Double line intersection character -
GV * TDF_STR Single line vertical bar character ¦
Gv * TDF_CHAR Double line vertical bar character :
HG TDF_INT Allow use of high intensity mode
HR * TDF_STR Exit high intensity mode
HS * TDF_STR Enter high intensity mode
is TDF_STR Terminal initialization string
k0-k39 * TDF_STR Generates KEY_F1, KEY_F2, ..., KEY_F40 keycodes
kd TDF_STR Generates KEY_DN keycode
ke TDF_STR Exit keypad mode
kh TDF_STR Generates KEY_HOME keycode
ki * TDF_STR Generates KEY_INS keycode
kl TDF_STR Generates KEY_LEFT keycode
kr TDF_STR Generates KEY_RIGHT keycode
ks TDF_STR Sets keypad mode
ku TDF_STR Generates KEY_UP keycode
L_xxx * TDF_STR Key label, where xxx is the mnemonic for a keycode
li TDF_INT Number of lines
pc TDF_CHAR Pad character
PD * TDF_STR Generates KEY_PGDN keycode
PL * TDF_STR Generates KEY_CLEFT keycode
PR * TDF_STR Generates KEY_CRIGHT keycode
PU * TDF_STR Generates KEY_PGUP keycode
rcl0 - rclx * TDF_STR Reset colors to NORMAL
scl0 - sclx * TDF_STR Set foreground and background colors
se TDF_STR Exit reverse video mode
sg TDF_INT Number of blank characters taken by se, so
Sk0 - Sk39 * TDF_STR Generates KEY_SF1, KEY_SF2, ..., KEY_SF40 keycodes
snow * TDF_BOOL Console is a CGA and will produce snow if write to video RAM. Instead go through the terminal driver (do slow output)
so TDF_STR Enter reverse video mode
SPD * TDF_STR Generates KEY_CPGDN keycode
SPU * TDF_STR Generates KEY_CPGUP keycode
SXD * TDF_STR Generates KEY_CEND keycode
SXU * TDF_STR Generates KEY_CHOME keycode
tc TDF_STR Similar terminal
ue TDF_STR Exit underline mode
ug TDF_INT Number of blank characters taken by ue, us
us TDF_STR Enter underline mode
xhp TDF_BOOL Hewlett Packard terminal
xi * TDF_BOOL Terminal will not automatically do a hardware scroll when the last position (last row and last column) on the screen is written to. Specify if available, otherwise Vermont Views will never write to the last position in order to avoid the automatic scrolling.
ZM * TDF_STR Window zoom

* Indicates mnemonics unique to vvtermcap; all other entries specified in a standard UNIX termcap file.


Home Contents Previous Next