About vvtermcap Entries

As with all standard termcap files, each section of vvtermcap that contains the commands for one type of terminal is called an entry. Part of the vvtermcap entry for the "terminal" that the IBM PC AT constitutes when it is running XENIX is shown below:

li|ansi|Ansi standard crt:\
     
    is=\E[m:\
     
    :co#80:
:li#25:
:CA:\
 
    :nd=\E[C:
:do=\E[B:
:cl=\E[2J\E[H:
:cm=\E[%i%d;%dH:\
    so=\E[7m:
:se=\E[m:
:us=\E[4m:
:ue=\E[m:\
    :GS=\E[12m:
:GE=\E[10m:
:GV=\063:
:GH=D:\
    :G1=?:
:G2=Z:
:G3=@:
:G4=Y:\
    ......
     
    ......
     
    :k9=\E[V:
:L-k9=F10:
   

As shown, the entry for the ANSI terminal consists of a number of fields separated by colons. To make an entry in vvtermcap more than one line long, use a backslash as the last character on a line.

Empty fields (fields filled with spaces) may be included. Empty fields must still be delimited by colons, as shown in the example entry. For instance:

:co#80:    :

shows two fields, the second being empty. Do not use spaces within the field. For instance:

:co#80     :li#25:

is invalid.

Putting fields filled with spaces improves the readability of the termcap file and is a convention used in vvtermcap.

Fields in a vvtermcap entry are of two kinds:

More:

Name Field

Terminal Description Fields

Syntax of String Fields

Syntax of String Fields for Cursor Motion Commands

Syntax of the Similar-Terminal Field


Home Contents Previous Next