📄 terminfo.5.html
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!-- * t * DO NOT EDIT THIS FILE BY HAND! * It is generated from terminfo.head, Caps, and terminfo.tail. * Note: this must be run through tbl before nroff. * The magic cookie on the first line triggers this under some man programs. **************************************************************************** * Copyright (c) 1998-2002,2004 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * * "Software"), to deal in the Software without restriction, including * * without limitation the rights to use, copy, modify, merge, publish, * * distribute, distribute with modifications, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included * * in all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR * * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR * * THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * * * Except as contained in this notice, the name(s) of the above copyright * * holders shall not be used in advertising or otherwise to promote the * * sale, use or other dealings in this Software without prior written * * authorization. * **************************************************************************** * @Id: terminfo.head,v 1.12 2004/09/25 19:07:11 tom Exp @ * Head of terminfo man page ends here * @Id: terminfo.tail,v 1.42 2005/06/25 22:46:03 tom Exp @ * Beginning of terminfo.tail file * See "terminfo.head" for copyright. *.in -2 *.in +2 *.in -2 *.in +2 *.TH--><HTML><HEAD><TITLE>TERMINFO 5 File Formats</TITLE><link rev=made href="mailto:bug-ncurses@gnu.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD><BODY><H1>TERMINFO 5 File Formats</H1><HR><PRE><!-- Manpage converted by man2html 3.0.1 --><STRONG><A HREF="TERMINFO.5.html">TERMINFO(5)</A></STRONG> File Formats <STRONG><A HREF="TERMINFO.5.html">TERMINFO(5)</A></STRONG></PRE><H2>NAME</H2><PRE> terminfo - terminal capability data base</PRE><H2>SYNOPSIS</H2><PRE> /usr/share/terminfo/*/*</PRE><H2>DESCRIPTION</H2><PRE> <EM>Terminfo</EM> is a data base describing terminals, used by screen-oriented programs such as <STRONG><A HREF="nvi.1.html">nvi(1)</A></STRONG>, <STRONG><A HREF="rogue.1.html">rogue(1)</A></STRONG> and libraries such as <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>. <EM>Terminfo</EM> describes termi- nals by giving a set of capabilities which they have, by specifying how to perform screen operations, and by speci- fying padding requirements and initialization sequences. Entries in <EM>terminfo</EM> 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 names which are known for the terminal, separated by `|' characters. The first name given is the most common abbreviation for the terminal, the last name given should be a long name fully identifying the terminal, and all others are understood 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 <EM>captoinfo</EM> and <EM>infotocap</EM> (aliases for <EM>tic</EM>) 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 <EM>infocmp</EM> <EM>-f</EM> option relies on this to format if-then-else expressions: the result can be read by <EM>tic</EM>. 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 contain hyphens. Modes that the hardware can be in, or user pref- erences, should be indicated by appending a hyphen and a mode suffix. Thus, a vt100 in 132 column mode would be vt100-w. The following suffixes should be used where pos- sible: <STRONG>Suffix</STRONG> <STRONG>Meaning</STRONG> <STRONG>Example</STRONG> -<EM>nn</EM> Number of lines on the screen aaa-60 -<EM>n</EM>p 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 -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 <STRONG>term(7)</STRONG> manual page. <STRONG>Capabilities</STRONG> The following is a complete table of the capabilities included in a terminfo description block and available to terminfo-using code. In each line of the table, The <STRONG>variable</STRONG> is the name by which the programmer (at the terminfo level) accesses the capability. The <STRONG>capname</STRONG> is the short name used in the text of the database, and is used by a person updating the database. Whenever possible, capnames are chosen to be the same as or similar 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 specifi- cation. The termcap code is the old <STRONG>termcap</STRONG> capability name (some capabilities are new, and have names which termcap did not originate). Capability names have no hard length limit, but an infor- mal limit of 5 characters has been adopted to keep them short and to allow the tabs in the source file <STRONG>Caps</STRONG> to line up nicely. Finally, the description field attempts to convey the semantics 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 is passed through tparm with parms as given (#<EM>i</EM>). (P*) indicates that padding may vary in proportion to the number of lines affected (#<EM>i</EM>) indicates the <EM>i</EM>th parameter. These are the boolean capabilities: <STRONG>Variable</STRONG> <STRONG>Cap-</STRONG> <STRONG>TCap</STRONG> <STRONG>Description</STRONG> <STRONG>Booleans</STRONG> <STRONG>name</STRONG> <STRONG>Code</STRONG> auto_left_margin bw bw cub1 wraps from col- umn 0 to last column auto_right_margin am am terminal has auto- matic margins back_color_erase bce ut screen erased with background color can_change ccc cc terminal can re- define existing col- ors ceol_standout_glitch xhp xs standout not erased by overwriting (hp) col_addr_glitch xhpa YA only positive motion for hpa/mhpa caps cpi_changes_res cpix YF changing character pitch changes reso- lution cr_cancels_micro_mode crxm YB using cr turns off micro mode dest_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 blank generic_type gn gn generic line type hard_copy hc hc hardcopy terminal hard_cursor chts HC cursor is hard to see has_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 set has_status_line hs hs has extra status line hue_lightness_saturation hls hl terminal uses only HLS color notation (Tektronix) insert_null_glitch in in insert mode distin- guishes nulls lpi_changes_res lpix YG changing line pitch changes resolution memory_above da da display may be retained above the screen
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -