📄 infocmp.1m
字号:
Dump the capabilities of the given terminal as tables, needed inthe C initializer for aTERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).This option is useful for preparing versions of the curses library hardwiredfor a given terminal type.The tables are all declared static, and are named according to the typeand the name of the corresponding terminal entry..spBefore ncurses 5.0, the split between the \fB-e\fP and \fB-E\fPoptions was not needed; but support for extended names required makingthe arrays of terminal capabilities separate from the TERMTYPE structure..TP 5\fB-e\fRDump the capabilities of the given terminal as a C initializer for aTERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).This option is useful for preparing versions of the curses library hardwiredfor a given terminal type..TP 5\fB-F\fRcompare terminfo files. This assumes that two following arguments arefilenames. The files are searched for pairwise matches betweenentries, with two entries considered to match if any of their names do.The report printed to standard output lists entries with no matches inthe other file, and entries with more than one match. For entrieswith exactly one match it includes a difference report. Normally,to reduce the volume of the report, use references arenot resolved before looking for differences, but resolution can be forcedby also specifying \fB-r\fR..TP 5\fB-f\fRDisplay complex terminfo strings which contain if/then/else/endif expressionsindented for readability..TP 5\fB-G\fRDisplay constant literals in decimal formrather than their character equivalents..TP 5\fB-g\fRDisplay constant character literals in quoted formrather than their decimal equivalents..TP 5\fB-i\fRAnalyze the initialization (\fBis1\fR, \fBis2\fR, \fBis3\fR), and reset(\fBrs1\fR, \fBrs2\fR, \fBrs3\fR), strings in the entry. For each string, thecode tries to analyze it into actions in terms of the other capabilities in theentry, certain X3.64/ISO 6429/ECMA-48 capabilities, and certain DEC VT-seriesprivate modes (the set of recognized special sequences has been selected forcompleteness over the existing terminfo database). Each report line consistsof the capability name, followed by a colon and space, followed by a printableexpansion of the capability string with sections matching recognized actionstranslated into {}-bracketed descriptions. Here is a list of the DEC/ANSIspecial sequences recognized:.TScenter tab(/) ;l ll l.Action/Meaning=RIS/full resetSC/save cursorRC/restore cursorLL/home-downRSR/reset scroll regionDECSTR/soft reset (VT320)S7C1T/7-bit controls (VT220)ISO DEC G0/enable DEC graphics for G0ISO UK G0/enable UK chars for G0ISO US G0/enable US chars for G0ISO DEC G1/enable DEC graphics for G1ISO UK G1/enable UK chars for G1ISO US G1/enable US chars for G1DECPAM/application keypad modeDECPNM/normal keypad modeDECANSI/enter ANSI modeECMA[+-]AM/keyboard action modeECMA[+-]IRM/insert replace modeECMA[+-]SRM/send receive modeECMA[+-]LNM/linefeed modeDEC[+-]CKM/application cursor keysDEC[+-]ANM/set VT52 modeDEC[+-]COLM/132-column modeDEC[+-]SCLM/smooth scrollDEC[+-]SCNM/reverse video modeDEC[+-]OM/origin modeDEC[+-]AWM/wraparound modeDEC[+-]ARM/auto-repeat mode.TE.spIt also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA SetGraphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, andREVERSE. All but NORMAL may be prefixed with `+' (turn on) or `-' (turn off).An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL})..TP 5\fB-l\fRSet output format to terminfo..TP 5\fB-p\fRIgnore padding specifications when comparing strings..TP 5\fB-q\fRMake the comparison listing shorter by omitting subheadings, and using"-" for absent capabilities, "@" for canceled rather than "NULL"..TP 5\fB-R\fR\fIsubset\fRRestrict output to a given subset. This option is for use with archaicversions of terminfo like those on SVr1, Ultrix, or HP/UX that do not supportthe full set of SVR4/XSI Curses terminfo; and variants such as AIXthat have their own extensions incompatible with SVr4/XSI. Available terminfosubsets are "SVr1", "Ultrix", "HP", and "AIX"; see \fBterminfo\fR(\*n) fordetails. You can also choose the subset "BSD" which selects only capabilitieswith termcap equivalents recognized by 4.4BSD..TP\fB-s \fR\fI[d|i|l|c]\fRThe \fB-s\fR option sorts the fields within each type according to the argumentbelow:.br.RS 5.TP 5\fBd\fRleave fields in the order that they are stored in the \fIterminfo\fR database..TP 5\fBi\fRsort by \fIterminfo\fR name..TP 5\fBl\fRsort by the long C variable name..TP 5\fBc\fRsort by the \fItermcap\fR name..RE.IPIf the \fB-s\fR option is not given, the fields printed out will besorted alphabetically by the \fBterminfo\fR name within each type,except in the case of the \fB-C\fR or the \fB-L\fR options, which cause thesorting to be done by the \fBtermcap\fR name or the long C variablename, respectively..TP 5\fB-T\fReliminates size-restrictions on the generated text.This is mainly useful for testing and analysis, since the compileddescriptions are limited (e.g., 1023 for termcap, 4096 for terminfo)..TP\fB-t\fRtells \fBtic\fP to discard commented-out capabilities.Normally when translating from terminfo to termcap,untranslatable capabilities are commented-out..TP 5\fB-V\fRreports the version of ncurses which was used in this program, and exits..TP 5\fB-v\fR \fIn\fRprints out tracing information on standard error as the program runs.Higher values of n induce greater verbosity..TP 5\fB-w\fR \fIwidth\fRchanges the output to \fIwidth\fR characters..TP\fB-x\fRprint information for user-defined capabilities.These are extensions to the terminfo repertoire which can be loadedusing the \fB-x\fR option of \fBtic\fP..SH FILES.TP 20\*dCompiled terminal description database..SH EXTENSIONSThe\fB-E\fR,\fB-F\fR,\fB-G\fR,\fB-R\fR,\fB-T\fR,\fB-V\fR,\fB-a\fR,\fB-e\fR,\fB-f\fR,\fB-g\fR,\fB-i\fR,\fB-l\fR,\fB-p\fR,\fB-q\fR and\fB-t\fRoptions are not supported in SVr4 curses.The \fB-r\fR 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 the4.4BSD set, use \fB-r\fR \fB-RBSD\fR..SH BUGSThe \fB-F\fR option of \fBinfocmp\fR(1M) should be a \fBtoe\fR(1M) mode..SH SEE ALSO\fBinfocmp\fR(1M), \fBcaptoinfo\fR(1M), \fBinfotocap\fR(1M),\fBtic\fR(1M), \fBtoe\fR(1M),\fBcurses\fR(3X), \fBterminfo\fR(\*n)..SH AUTHOREric S. Raymond <esr@snark.thyrsus.com>and.brThomas E. Dickey <dickey@invisible-island.net>.\"#.\"# The following sets edit modes for GNU EMACS.\"# Local Variables:.\"# mode:nroff.\"# fill-column:79.\"# End:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -