*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: termcap | Section: 5 | Source: UNIX v10 | File: termcap.5
TERMCAP(5) File Formats Manual TERMCAP(5) NAME termcap - terminal capability file DESCRIPTION Termcap describes terminals as used, for example, by vi(1) and curses(3) or in the TERMCAP environment variable. A termcap entry is a line containing fields separated by Lines may be broken; at the end of a line signifies continuation. Empty fields are ignored. The first field for each entry gives names for a terminal separated by The first name is conventionally two characters long for the benefit of older systems; the second name is the customary abbreviation; and the last name fully identifies the terminal. There are three types of capability: Boolean for the presence of a fea- ture, numeric for sizes and time delays, and strings for performing op- erations. Some string fields may be preceded by a number, which speci- fies padding, a time delay required with the operation. These capabil- ities are marked `P' or `P*' below. Padding is measured in millisec- onds; P* signifies that the padding is proportional to the number of lines (or characters) affected, for example, specifies 3.5 milliseconds per unit. Name Type PadDescription ae str PEnd alternate character set al str P*Add new blank line am bool Automatic margin as str PStart alternate character set bc str Backspace char if not ^H bs bool Terminal can backspace bt str PBack tab bw bool Backspace wraps from column 0 to last column CC str Command character in prototype if terminal settable cd str P*Clear to end of display ce str PClear to end of line ch str PLike cm but horizontal motion only cl str P*Clear screen cm str PCursor motion co num Number of columns cr str P*Carriage return, default ^M cs str PChange scrolling region (vt100), like cm cv str PLike ch, but vertical only da bool Display may be retained above dB num Backspace delay db bool Display may be retained below dC num Carriage return delay dc str P*Delete character dF num Form feed delay dl str P*Delete line dm str Enter delete mode dN num Newline delay do str Down one line dT num tab delay ed str End delete mode ei str End insert mode; give :ei=: if ic eo str Can erase overstrikes with blank ff str P*Hard copy page eject, default ^L hc bool Hardcopy terminal hd str Half line down ho str Home cursor if no cm hu str Half line up hz str Hazeltine, can't print ~ ic str PInsert character if str Name of file containing initializationis im bool Enter insert mode; give :im=: if ic in bool Insert mode distinguishes nulls on display ip str P*Insert pad after character insert is str Terminal initialization string k0-k9 strOther function key codes kb str Backspace key code kd str Down arrow key code ke str Leave keypad transmit mode kh str Home key code kl str Left arrow key code kn num Number of function keys ko str Termcap entries for other non-function keys kr str Right arrow key code ks str Enter keypad transmit mode ku str Up arrow key code l0-9 str Labels on other function keys li num Number of lines on screen or page ll str Last line, first column, if no cm ma str Arrow key map mi bool Safe to move in insert mode ml str Memory lock above cursor ms bool Safe to move in standout or underline mode mu str Turn off memory lock nc bool No correctly working CR (DM2500, H2000) nd str Nondestructive space (cursor right) nl str P*Newline character, default \n ns bool Nonscrolling CRT os bool Terminal overstrikes pc str Pad character, default NUL pt bool Has hardware tabs (possibly set by is) se str Leave standout mode sf str PScroll forward sg num Number of blanks left by so, se so str Enter standout mode sr str PScroll reverse (backward) ta str PTab, if not ^I or if padded tc str Entry of similar terminal, must be last te str String to end programs that use cm ti str String to begin programs that use cm uc str Underscore one char and move past it ue str Leave underscore mode ug num Number of blanks left by us, ue ul bool Terminal underlines but doesn't overstrike up str Cursor up one line us str Enter underscore mode vb str Visible bell, (may not move cursor) ve str Leave open/visual mode vs str Enter open/visual mode xb bool Beehive (f1=escape, f2=^C) xn bool Newline ignored after wrap (Concept) xr bool Return acts like ce \r \n (Delta Data) xs bool Standout not erased by writing over (HP264?) xt bool Tabs are destructive, magic so (Teleray 1061) The following example is one of the more elaborate termcap entries. (Do not believe it; see the file for current facts.) co|c100|concept 100:is=\EU\Ef\E7\E5\E8\El\ENH\EK\E\200\Eo&\200\Eo\47\E:\ :al=3*\E^R:am:bs:cd=16*\E^C:ce=16\E^S:cl=2*^L:cm=\Ea%+ %+ :co#80:\ :dc=16\E^A:dl=3*\E^B:ei=\E\200:eo:im=\E^P:in:ip=16*:li#24:mi:\ :nd=\E=:se=\Ed\E:so=\ED\EE:ta=8\t:ul:up=\E;vb=\Ek\Ek:xn: Among the Boolean capabilities shown for the Concept are automatic mar- gins automatic return and linefeed at the end of a line. Numeric capa- bilities are indicated by means the Concept has 80 columns. String ca- pabilities are indicated by to clear to end of line on the Concept, is- sue <escape> <control-C> and pad with 16 milliseconds delay. In strings the ASCII ESC character is represented by and control char- acters are represented by ^c, where character c has ASCII code 0100 greater than the desired control character. Newline, return, tab, backspace, form feed, \ and ^ are represented by \n \r \t \b \f \\ \^. Backslash followed by 3 digits specifies a byte in octal. A null char- acter is encoded the routines that use termcap information mask out the high bit of all bytes. Local cursor motions are undefined if they run off the left or top of the screen; the curses routines refrain from issuing such motions. It is assumed that the screen will scroll up upon running off the bottom; this assumption is negated by Capability (automatic margin) describes the handling of the right margin. Cursor addressing is described by capability which contains printf(3)-like format codes for line and column positions. The left- most column is column 0. %d as in printf %2 like %2d %3 like %3d %. like %c %+x adds x before converting %>xy if value exceeds x, add y, no output %r reverse order of line and column, no output %i increment line/column (1-origin) %% single % %n exclusive or row and column with 0140 (DM2500) %B BCD: 16*(x/10) + (x%10), no output %D Reverse coding: x-2*(x%16), no output For example, to go to line 3 column 12, a HP2645 terminal must get \E&a12c03Y padded for 6 milliseconds: Capability adds an empty line before the line where the cursor is and leaves the cursor on the new line. This will always be done with the cursor at column 0. Capability deletes the line where the cursor is and is also done with the cursor at column 0. Capabilities and warn that off-screen lines may appear at the top or bottom of the screen upon scrolling or deleting lines. The curses routines do not use this feature, but do guard against its effects. Insert-character operations usually affect only the current line and shift characters off the end of the line rigidly. Some terminals, such as the Concept 100, distinguish typed from untyped blanks on the screen, shifting upon insertion only up to an untyped blank, i.e. a space caused by cursor motion; these terminals have capability (insert null). Some terminals have an insertion mode; others require a special se- quence to open up a blank position on the current line. Insertion mode is entered and left by and which should be null strings if there is no insertion mode. String is sent just before each character to be in- serted, and padding is sent after. Capability says it is possible to move around without leaving insertion mode. Delete mode works simi- larly: enter with leave with and issue before each character. Highlighting, or `standout' mode is entered by and left by Underline mode is entered by and left by Terminals that underline characters in- dividually have capability The visual bell capability flashes the screen without moving the cursor. A terminal with a keypad that transmits cursor motions may be described by capabilities kl kr ku kd kh that give the codes for left, right, up, down, and home. Up to ten function keys may be described by through Special labels for the function keys may be given as through The initialization string is expected to set tabs if that is necessary. That string may come from a file if both are present is done first. The entry for a terminal may be continued by jumping to another entry given by Duplicate capabilities are resolved in favor of the first. FILES SEE ALSO curses(3), termcap(3), vi(1), ul(1) BUGS Termcap entries, including continuations, are limited to 1024 charac- ters. TERMCAP(5)

Navigation Options