📄 infocmp.1m.html
字号:
line to a maximum width of 60 characters. <STRONG>-a</STRONG> tells <STRONG>infocmp</STRONG> to retain commented-out capabilities rather than discarding them. Capabilities are com- mented by prefixing them with a period. <STRONG>-E</STRONG> Dump the capabilities of the given terminal as tables, needed in the C initializer for a TERMTYPE structure (the terminal capability structure in the <STRONG><term.h></STRONG>). This option is useful for preparing ver- sions of the curses library hardwired for a given terminal type. The tables are all declared static, and are named according to the type and the name of the corresponding terminal entry. Before ncurses 5.0, the split between the <STRONG>-e</STRONG> and <STRONG>-E</STRONG> options was not needed; but support for extended names required making the arrays of terminal capabil- ities separate from the TERMTYPE structure. <STRONG>-e</STRONG> Dump the capabilities of the given terminal as a C initializer for a TERMTYPE structure (the terminal capability structure in the <STRONG><term.h></STRONG>). This option is useful for preparing versions of the curses library hardwired for a given terminal type. <STRONG>-F</STRONG> compare terminfo files. This assumes that two fol- lowing arguments are filenames. The files are searched for pairwise matches between entries, with two entries considered to match if any of their names do. The report printed to standard output lists entries with no matches in the other file, and entries with more than one match. For entries with exactly one match it includes a difference report. Normally, to reduce the volume of the report, use references are not resolved before looking for dif- ferences, but resolution can be forced by also speci- fying <STRONG>-r</STRONG>. <STRONG>-f</STRONG> Display complex terminfo strings which contain if/then/else/endif expressions indented for readabil- ity. <STRONG>-G</STRONG> Display constant literals in decimal form rather than their character equivalents. <STRONG>-g</STRONG> Display constant character literals in quoted form rather than their decimal equivalents. <STRONG>-i</STRONG> Analyze the initialization (<STRONG>is1</STRONG>, <STRONG>is2</STRONG>, <STRONG>is3</STRONG>), and reset (<STRONG>rs1</STRONG>, <STRONG>rs2</STRONG>, <STRONG>rs3</STRONG>), strings in the entry. For each string, the code tries to analyze it into actions in terms of the other capabilities in the entry, certain X3.64/ISO 6429/ECMA-48 capabilities, and certain DEC VT-series private modes (the set of recognized spe- cial sequences has been selected for completeness over the existing terminfo database). Each report line consists of the capability name, followed by a colon and space, followed by a printable expansion of the capability string with sections matching recog- nized actions translated into {}-bracketed descrip- tions. Here is a list of the DEC/ANSI special sequences recognized: Action Meaning ----------------------------------------- RIS full reset SC save cursor RC restore cursor LL home-down RSR reset scroll region DECSTR soft reset (VT320) S7C1T 7-bit controls (VT220) ISO DEC G0 enable DEC graphics for G0 ISO UK G0 enable UK chars for G0 ISO US G0 enable US chars for G0 ISO DEC G1 enable DEC graphics for G1 ISO UK G1 enable UK chars for G1 ISO US G1 enable US chars for G1 DECPAM application keypad mode DECPNM normal keypad mode DECANSI enter ANSI mode ECMA[+-]AM keyboard action mode ECMA[+-]IRM insert replace mode ECMA[+-]SRM send receive mode ECMA[+-]LNM linefeed mode DEC[+-]CKM application cursor keys DEC[+-]ANM set VT52 mode DEC[+-]COLM 132-column mode DEC[+-]SCLM smooth scroll DEC[+-]SCNM reverse video mode DEC[+-]OM origin mode DEC[+-]AWM wraparound mode DEC[+-]ARM auto-repeat mode It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and REVERSE. All but NORMAL may be prefixed with `+' (turn on) or `-' (turn off). An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}). <STRONG>-l</STRONG> Set output format to terminfo. <STRONG>-p</STRONG> Ignore padding specifications when comparing strings. <STRONG>-q</STRONG> Make the comparison listing shorter by omitting sub- headings, and using "-" for absent capabilities, "@" for canceled rather than "NULL". <STRONG>-R</STRONG><EM>subset</EM> Restrict output to a given subset. This option is for use with archaic versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support the full set of SVR4/XSI Curses terminfo; and variants such as AIX that have their own extensions incompati- ble with SVr4/XSI. Available terminfo subsets are "SVr1", "Ultrix", "HP", and "AIX"; see <STRONG><A HREF="terminfo.5.html">terminfo(5)</A></STRONG> for details. You can also choose the subset "BSD" which selects only capabilities with termcap equiva- lents recognized by 4.4BSD. <STRONG>-s</STRONG> <EM>[d|i|l|c]</EM> The <STRONG>-s</STRONG> option sorts the fields within each type according to the argument below: <STRONG>d</STRONG> leave fields in the order that they are stored in the <EM>terminfo</EM> database. <STRONG>i</STRONG> sort by <EM>terminfo</EM> name. <STRONG>l</STRONG> sort by the long C variable name. <STRONG>c</STRONG> sort by the <EM>termcap</EM> name. If the <STRONG>-s</STRONG> option is not given, the fields printed out will be sorted alphabetically by the <STRONG>terminfo</STRONG> name within each type, except in the case of the <STRONG>-C</STRONG> or the <STRONG>-L</STRONG> options, which cause the sorting to be done by the <STRONG>termcap</STRONG> name or the long C variable name, respec- tively. <STRONG>-T</STRONG> eliminates size-restrictions on the generated text. This is mainly useful for testing and analysis, since the compiled descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo). <STRONG>-t</STRONG> tells <STRONG>tic</STRONG> to discard commented-out capabilities. Normally when translating from terminfo to termcap, untranslatable capabilities are commented-out. <STRONG>-V</STRONG> reports the version of ncurses which was used in this program, and exits. <STRONG>-v</STRONG> <EM>n</EM> prints out tracing information on standard error as the program runs. Higher values of n induce greater verbosity. <STRONG>-w</STRONG> <EM>width</EM> changes the output to <EM>width</EM> characters. <STRONG>-x</STRONG> print information for user-defined capabilities. These are extensions to the terminfo repertoire which can be loaded using the <STRONG>-x</STRONG> option of <STRONG>tic</STRONG>.</PRE><H2>FILES</H2><PRE> /usr/share/terminfo Compiled terminal description database.</PRE><H2>EXTENSIONS</H2><PRE> The <STRONG>-E</STRONG>, <STRONG>-F</STRONG>, <STRONG>-G</STRONG>, <STRONG>-R</STRONG>, <STRONG>-T</STRONG>, <STRONG>-V</STRONG>, <STRONG>-a</STRONG>, <STRONG>-e</STRONG>, <STRONG>-f</STRONG>, <STRONG>-g</STRONG>, <STRONG>-i</STRONG>, <STRONG>-l</STRONG>, <STRONG>-p</STRONG>, <STRONG>-q</STRONG> and <STRONG>-t</STRONG> options are not supported in SVr4 curses. The <STRONG>-r</STRONG> option's notion of `termcap' capabilities is System V Release 4's. Actual BSD curses versions will have a more restricted set. To see only the 4.4BSD set, use <STRONG>-r</STRONG> <STRONG>-RBSD</STRONG>.</PRE><H2>BUGS</H2><PRE> The <STRONG>-F</STRONG> option of <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG> should be a <STRONG><A HREF="toe.1m.html">toe(1m)</A></STRONG> mode.</PRE><H2>SEE ALSO</H2><PRE> <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG>, <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>, <STRONG><A HREF="infotocap.1m.html">infotocap(1m)</A></STRONG>, <STRONG><A HREF="tic.1m.html">tic(1m)</A></STRONG>, <STRONG><A HREF="toe.1m.html">toe(1m)</A></STRONG>, <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="terminfo.5.html">terminfo(5)</A></STRONG>.</PRE><H2>AUTHOR</H2><PRE> Eric S. Raymond <esr@snark.thyrsus.com> and Thomas E. Dickey <dickey@invisible-island.net> <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG></PRE><HR><ADDRESS>Man(1) output converted with<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -