Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
termcap(4) OSS System Calls Reference Manual
bool Newline ignored after 80 columns (Concept)xn
bool Terminal uses xoff/xon (DC3/2DC1) handshakingxo
bool Return acts like ce cr nl (Delta Data)xr (o)
bool Standout not erased by overwriting (Hewlett-Packard terminals)xs
bool Tabs ruin magic so character (Teleray 1061 terminal)xt
xx bool (o) Tektronix 4025 terminal insert-line
A Sample Entry
The following entry, which describes the Concept-100, is among the more complex entries in the
termcap file as of this writing:
ca|concept100|c100|concept|c104|concept100-4p|HDS Concept-100:\
:al=3*\EˆR:am:bl=ˆG:cd=16*\EˆC:ce=16\EˆU:cl=2*ˆL:cm=\Ea%+ %+ :\
:co#80:.cr=9ˆM:db:dc=16\EˆA:dl=3*\EˆB:do=ˆJ:ei=\E\200:eo:im=\EˆP:in:\
:ip=16*:is=\EU\Ef\E7\E5\E8\El\ENH\EK\E\200\Eo&\200\Eo\47\E:k1=\E5:\
:k2=\E6:k3=\E7:kb=ˆh:kd=\E<:ke=\Ex:kh=\E?:kl=\E>:kr=\E=:ks=\EX:\
:ku=\E;:le=ˆH:li#24:mb=\EC:me=\EN\200:mh=\EE:mi:mk=\EH:mp=\EI:\
:mr=\ED:nd=\E=:pb#9600:rp=0.2*\Er%.%+ :se=\Ed\Ee:sf=ˆJ:so=\EE\ED:\
:.ta=8\t:te=\Ev \200\200\200\200\200\200\Ep\r\n:\
:ti=\EU\Ev 8p\Ep\r:ue=\Eg:ul:up=\E;:us=\EG:\
:vb=\Ek\200\200\200\200\200\200\200\200\200\200\200\200\200\200\EK:\
:ve=\Ew:vs=\EW:vt#8:xn:\
:bs:cr=ˆM:dC#9:dT#8:nl=ˆJ:ta=ˆI:pt:
Entries can continue onto multiple lines by using a \ (backslash) as the last character of a line,
and empty fields can be included for readability (here between the last field on a line and the first
field on the next). Comments can be included on lines beginning with a # (number sign) charac-
ter.
For instance, the fact that the Concept terminal has automatic margins (that is, an automatic
return and linefeed when the end of a line is reached) is indicated by the Boolean capability am.
Hence the description of the Concept includes am.
In the termcap file, numeric capabilities are followed by the # (number sign) character and the
value. In the preceding example, the co capability, which indicates the number of columns in the
display, has the value 80 for the Concept terminal.
In the termcap file, string-valued capabilities such as ce (clear-to-end-of-line sequence) are
given by the two-letter capability code, an = (equal sign), then a string ending at the next follow-
ing : (colon).
A delay in milliseconds can appear after the = in such a capability, which causes padding charac-
ters to be supplied after the remainder of the string is sent to provide this delay. The delay can be
either a number (for example, 20), or a number followed by an * (for example, 3*). An * (aster-
isk) indicates that the padding required is proportional to the number of lines affected by the
operation, and the amount given is the per-affected-line padding required. (In the case of insert-
character, the factor is still the number of lines affected; this is always a 1 unless the terminal has
in capability and the software uses it.) When an * (asterisk) is specified, it is sometimes useful to
give a delay of the form 3.5 to specify a delay per line to tenths of milliseconds. (Only one
decimal place is allowed.)
A number of escape sequences are provided in the string-valued capabilities for easy encoding of
control characters there. \E maps to an ESC character, ˆX maps to a <Ctrl-X> for any appropriate
X, and the sequences \n, \r, \t, \b, and \f map to linefeed, return, tab, backspace, and formfeed,
respectively. Finally, characters can be given as three octal digits after a \ (backslash), and the
characters ˆ (circumflex) and \ can be given as \ˆ and \\. If it is necessary to place a : (colon) in a
capability, it must be encoded in octal as \072. If it is necessary to place a NUL character in a
11−56 Hewlett-Packard Company 527186-023