Linux "captoinfo" Command Line Options and Examples
convert a termcap description into a terminfo description

captoinfo looks in each given text file for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output. Termcap tc capabilities are translated directly to terminfo use capabilities.


Usage:

captoinfo [-vn width] [-V] [-1] [-w width] file . . .






Command Line Options:

-v
print out tracing information on standard error as the program runs.
captoinfo -v ...
-V
print out the version of the program in use on standard error and exit.
captoinfo -V ...
-w
FILES/etc/terminfo Compiled terminal description database.TRANSLATIONS FROM NONSTANDARD CAPABILITIESSome obsolete nonstandard capabilities will automatically be translated into standard (SVr4/XSI Curses) terminfo capabilities by cap‐toinfo. Whenever one of these automatic translations is done, the program will issue an notification to stderr, inviting the user tocheck that it has not mistakenly translated a completely unknown and random capability and/or syntax error.Nonstd Std From Terminfoname name capability───────────────────────────────────────────────BO mr AT&T enter_reverse_modeCI vi AT&T cursor_invisibleCV ve AT&T cursor_normalDS mh AT&T enter_dim_modeEE me AT&T exit_attribute_modeFE LF AT&T label_onFL LO AT&T label_offXS mk AT&T enter_secure_modeEN @7 XENIX key_endGE ae XENIX exit_alt_charset_modeGS as XENIX enter_alt_charset_modeHM kh XENIX key_homeLD kL XENIX key_dlPD kN XENIX key_npagePN po XENIX prtr_offPS pf XENIX prtr_onPU kP XENIX key_ppageRT @8 XENIX kentUP ku XENIX kcuu1KA k; Tek key_f10KB F1 Tek key_f11KC F2 Tek key_f12KD F3 Tek key_f13KE F4 Tek key_f14KF F5 Tek key_f15BC Sb Tek set_backgroundFC Sf Tek set_foregroundHS mh Iris enter_dim_modeXENIX termcap also used to have a set of extension capabilities for forms drawing, designed to take advantage of the IBM PC high-halfgraphics. They were as follows:Cap Graphic─────────────────────────────G2 upper leftG3 lower leftG1 upper rightG4 lower rightGR pointing rightGL pointing leftGU pointing upGD pointing downGH horizontal lineGV vertical lineGC intersectionG6 upper leftG7 lower leftG5 upper rightG8 lower rightGr tee pointing rightGr tee pointing leftGu tee pointing upGd tee pointing downGh horizontal lineGv vertical lineGc intersectionGG acs magic cookie countIf the single-line capabilities occur in an entry, they will automatically be composed into an acsc string. The double-line capabil‐ities and GG are discarded with a warning message.IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible with the SVr4 format. The following AIX extensionsare automatically translated:IBM XSI─────────────ksel ksltkbtab kcbtfont0 s0dsfont1 s1dsfont2 s2dsfont3 s3dsAdditionally, the AIX box1 capability will be automatically translated to an acsc string.Hewlett-Packard's terminfo library supports two nonstandard terminfo capabilities meml (memory lock) and memu (memory unlock). Thesewill be discarded with a warning message.NOTESThis utility is actually a link to tic(1), running in -I mode. You can use other tic options such as -f and -x.The trace option is not identical to SVr4's. Under SVr4, instead of following the -v with a trace level n, you repeat it n times.
captoinfo -w ...