File Formats terminfo(5)
NAME
terminfo - terminal capability data base
SYNOPSIS
/usr/gnu/share/terminfo/*/*
DESCRIPTION
Terminfo is a data base describing terminals, used byscreen-oriented programs such as nvi(1), rogue(1) and
libraries such as curses(3X). Terminfo describes terminalsby giving a set of capabilities which they have, by specify-
ing how to perform screen operations, and by specifying pad-
ding requirements and initialization sequences. This describes ncurses version 5.7 (patch 20081102).Entries in terminfo consist of a sequence of `,' separated
fields (embedded commas may be escaped with a backslash or notated as \054). White space after the `,' separator is ignored. The first entry for each terminal gives the nameswhich are known for the terminal, separated by `|' charac-
ters. The first name given is the most common abbreviation for the terminal, the last name given should be a long namefully identifying the terminal, and all others are under-
stood as synonyms for the terminal name. All names but the last should be in lower case and contain no blanks; the last name may well contain upper case and blanks for readability.Lines beginning with a `#' in the first column are treated
as comments. While comment lines are legal at any point, the output of captoinfo and infotocap (aliases for tic) will move comments so they occur only between entries. Newlines and leading tabs may be used for formatting entries for readability. These are removed from parsed entries.The infocmp -f option relies on this to format if-then-else
expressions: the result can be read by tic. Terminal names (except for the last, verbose entry) should be chosen using the following conventions. The particular piece of hardware making up the terminal should have a root name, thus ``hp2621''. This name should not containhyphens. Modes that the hardware can be in, or user prefer-
ences, should be indicated by appending a hyphen and a modesuffix. Thus, a vt100 in 132 column mode would be vt100-w.
The following suffixes should be used where possible: Suffix Meaning Example-nn Number of lines on the screen aaa-60
-np Number of pages of memory c100-4p
-am With automargins (usually the default) vt100-am
-m Mono mode; suppress color ansi-m
-mc Magic cookie; spaces when highlighting wy30-mc
SunOS 5.10 Last change: 1File Formats terminfo(5)
-na No arrow keys (leave them in local) c100-na
-nam Without automatic margins vt100-nam
-nl No status line att4415-nl
-ns No status line hp2626-ns
-rv Reverse video c100-rv
-s Enable status line vt100-s
-vb Use visible bell instead of beep wy370-vb
-w Wide mode (> 80 columns, usually 132) vt100-w
For more on terminal naming conventions, see the term(7) manual page. Capabilities The following is a complete table of the capabilitiesincluded in a terminfo description block and available to
terminfo-using code. In each line of the table,
The variable is the name by which the programmer (at theterminfo level) accesses the capability.
The capname is the short name used in the text of the data-
base, and is used by a person updating the database. When-
ever possible, capnames are chosen to be the same as orsimilar to the ANSI X3.64-1979 standard (now superseded by
ECMA-48, which uses identical or very similar names).
Semantics are also intended to match those of the specifica-
tion. The termcap code is the old termcap capability name (some capabilities are new, and have names which termcap did not originate). Capability names have no hard length limit, but an informal limit of 5 characters has been adopted to keep them short and to allow the tabs in the source file Caps to line up nicely.Finally, the description field attempts to convey the seman-
tics of the capability. You may find some codes in the description field: (P) indicates that padding may be specified#[1-9]
in the description field indicates that the string ispassed through tparm with parms as given (#i).
(P*) indicates that padding may vary in proportion to the number of lines affected(#i) indicates the ith parameter.
SunOS 5.10 Last change: 2File Formats terminfo(5)
These are the boolean capabilities:Variable Cap- TCap Description
Booleans name Codeauto_left_margin bw bw cub1 wraps from
column 0 to last columnauto_right_margin am am terminal has
automatic marginsback_color_erase bce ut screen erased with
background colorcan_change ccc cc terminal can re-
define existing colorsceol_standout_glitch xhp xs standout not erased
by overwriting (hp)col_addr_glitch xhpa YA only positive motion
for hpa/mhpa capscpi_changes_res cpix YF changing character
pitch changes reso-
lutioncr_cancels_micro_mode crxm YB using cr turns off
micro modedest_tabs_magic_smso xt xt tabs destructive,
magic so char (t1061)eat_newline_glitch xenl xn newline ignored
after 80 cols (con-
cept)erase_overstrike eo eo can erase over-
strikes with a blankgeneric_type gn gn generic line type
hard_copy hc hc hardcopy terminal
hard_cursor chts HC cursor is hard to
seehas_meta_key km km Has a meta key
(i.e., sets 8th-bit)
has_print_wheel daisy YC printer needs opera-
tor to change char-
acter sethas_status_line hs hs has extra status
linehue_lightness_saturation hls hl terminal uses only
HLS color notation (Tektronix)insert_null_glitch in in insert mode distin-
guishes nullslpi_changes_res lpix YG changing line pitch
changes resolution SunOS 5.10 Last change: 3File Formats terminfo(5)
memory_above da da display may be
retained above the screenmemory_below db db display may be
retained below the screenmove_insert_mode mir mi safe to move while
in insert modemove_standout_mode msgr ms safe to move while
in standout modeneeds_xon_xoff nxon nx padding will not
work, xon/xoff requiredno_esc_ctlc xsb xb beehive (f1=escape,
f2=ctrl C)no_pad_char npc NP pad character does
not existnon_dest_scroll_region ndscr ND scrolling region is
non-destructive
non_rev_rmcup nrrmc NR smcup does not
reverse rmcupover_strike os os terminal can over-
strikeprtr_silent mc5i 5i printer will not
echo on screenrow_addr_glitch xvpa YD only positive motion
for vpa/mvpa capssemi_auto_right_margin sam YE printing in last
column causes crstatus_line_esc_ok eslok es escape can be used
on the status linetilde_glitch hz hz cannot print ~'s
(hazeltine)transparent_underline ul ul underline character
overstrikesxon_xoff xon xo terminal uses
xon/xoff handshaking These are the numeric capabilities:Variable Cap- TCap Description
Numeric name Code columns cols co number of columns in a lineinit_tabs it it tabs initially every
# spaces
label_height lh lh rows in each label
label_width lw lw columns in each
label lines lines li number of lines on screen or page SunOS 5.10 Last change: 4File Formats terminfo(5)
lines_of_memory lm lm lines of memory if >
line. 0 means variesmagic_cookie_glitch xmc sg number of blank
characters left by smso or rmsomax_attributes ma ma maximum combined
attributes terminal can handlemax_colors colors Co maximum number of
colors on screenmax_pairs pairs pa maximum number of
color-pairs on the
screenmaximum_windows wnum MW maximum number of
defineable windowsno_color_video ncv NC video attributes
that cannot be used with colorsnum_labels nlab Nl number of labels on
screenpadding_baud_rate pb pb lowest baud rate
where padding neededvirtual_terminal vt vt virtual terminal
number (CB/unix)width_status_line wsl ws number of columns in
status line The following numeric capabilities are present in the SVr4.0 term structure, but are not yet documented in the man page. They came in with SVr4's printer support.Variable Cap- TCap Description
Numeric name Codebit_image_entwining bitwin Yo number of passes for
each bit-image row
bit_image_type bitype Yp type of bit-image
devicebuffer_capacity bufsz Ya numbers of bytes
buffered before printing buttons btns BT number of buttons on mousedot_horz_spacing spinh Yc spacing of dots hor-
izontally in dots per inchdot_vert_spacing spinv Yb spacing of pins
vertically in pins per inchmax_micro_address maddr Yd maximum value in
micro_..._address
SunOS 5.10 Last change: 5File Formats terminfo(5)
max_micro_jump mjump Ye maximum value in
parm_..._micro
micro_col_size mcs Yf character step size
when in micro modemicro_line_size mls Yg line step size when
in micro modenumber_of_pins npins Yh numbers of pins in
print-head
output_res_char orc Yi horizontal resolu-
tion in units per lineoutput_res_horz_inch orhi Yk horizontal resolu-
tion in units per inchoutput_res_line orl Yj vertical resolution
in units per lineoutput_res_vert_inch orvi Yl vertical resolution
in units per inchprint_rate cps Ym print rate in char-
acters per secondwide_char_size widcs Yn character step size
when in double wide mode These are the string capabilities: SunOS 5.10 Last change: 6