Codex

captoinfo

Section: User Commands (1)

Updated:

Index?action=index Return to Main Contents


NAME

captoinfo - convert a termcap description into a terminfo description

SYNOPSIS

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

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.

If no file is given, then the environment variable TERMCAP is used for the filename or entry. If TERMCAP is a full pathname to a file, only the terminal whose name is specified in the environment variable TERM is extracted from that file. If the environment variable TERMCAP is not set, then the file /etc/terminfo is read.

-v
print out tracing information on standard error as the program runs.:
-V
print out the version of the program in use on standard error and exit.:
-1
cause the fields to print out one to a line. Otherwise, the fields will be printed several to a line to a maximum width of 60 characters.:
-w
change the output to width characters.:

FILES

/etc/terminfo
Compiled terminal description database.:

TRANSLATIONS FROM NONSTANDARD CAPABILITIES

Some obsolete nonstandard capabilities will automatically be translated into standard (SVr4/XSI Curses) terminfo capabilities by captoinfo. Whenever one of these automatic translations is done, the program will issue an notification to stderr, inviting the user to check that it has not mistakenly translated a completely unknown and random capability and/or syntax error.

<TABLE> <TR VALIGN="top| <TD ALIGN="center|Nonstd</TD> <TD ALIGN="center|Std</TD> <TD ALIGN="center|From</TD> <TD ALIGN="center|Terminfo

</TD> </TR> <TR VALIGN="top| <TD ALIGN="center|name</TD> <TD ALIGN="center|name</TD> <TD ALIGN="center|</TD> <TD ALIGN="center|capability

</TD> </TR> <TR VALIGN="top| <TD COLSPAN="4|


</TD> </TR> <TR VALIGN="top| <TD>BO</TD> <TD>mr</TD> <TD>AT&T</TD> <TD>enter_reverse_mode

</TD> </TR> <TR VALIGN="top| <TD>CI</TD> <TD>vi</TD> <TD>AT&T</TD> <TD>cursor_invisible

</TD> </TR> <TR VALIGN="top| <TD>CV</TD> <TD>ve</TD> <TD>AT&T</TD> <TD>cursor_normal

</TD> </TR> <TR VALIGN="top| <TD>DS</TD> <TD>mh</TD> <TD>AT&T</TD> <TD>enter_dim_mode

</TD> </TR> <TR VALIGN="top| <TD>EE</TD> <TD>me</TD> <TD>AT&T</TD> <TD>exit_attribute_mode

</TD> </TR> <TR VALIGN="top| <TD>FE</TD> <TD>LF</TD> <TD>AT&T</TD> <TD>label_on

</TD> </TR> <TR VALIGN="top| <TD>FL</TD> <TD>LO</TD> <TD>AT&T</TD> <TD>label_off

</TD> </TR> <TR VALIGN="top| <TD>XS</TD> <TD>mk</TD> <TD>AT&T</TD> <TD>enter_secure_mode

</TD> </TR> <TR VALIGN="top| <TD>EN</TD> <TD>@7</TD> <TD>XENIX</TD> <TD>key_end

</TD> </TR> <TR VALIGN="top| <TD>GE</TD> <TD>ae</TD> <TD>XENIX</TD> <TD>exit_alt_charset_mode

</TD> </TR> <TR VALIGN="top| <TD>GS</TD> <TD>as</TD> <TD>XENIX</TD> <TD>enter_alt_charset_mode

</TD> </TR> <TR VALIGN="top| <TD>HM</TD> <TD>kh</TD> <TD>XENIX</TD> <TD>key_home

</TD> </TR> <TR VALIGN="top| <TD>LD</TD> <TD>kL</TD> <TD>XENIX</TD> <TD>key_dl

</TD> </TR> <TR VALIGN="top| <TD>PD</TD> <TD>kN</TD> <TD>XENIX</TD> <TD>key_npage

</TD> </TR> <TR VALIGN="top| <TD>PN</TD> <TD>po</TD> <TD>XENIX</TD> <TD>prtr_off

</TD> </TR> <TR VALIGN="top| <TD>PS</TD> <TD>pf</TD> <TD>XENIX</TD> <TD>prtr_on

</TD> </TR> <TR VALIGN="top| <TD>PU</TD> <TD>kP</TD> <TD>XENIX</TD> <TD>key_ppage

</TD> </TR> <TR VALIGN="top| <TD>RT</TD> <TD>@8</TD> <TD>XENIX</TD> <TD>kent

</TD> </TR> <TR VALIGN="top| <TD>UP</TD> <TD>ku</TD> <TD>XENIX</TD> <TD>kcuu1

</TD> </TR> <TR VALIGN="top| <TD>KA</TD> <TD>k;</TD> <TD>Tek</TD> <TD>key_f10

</TD> </TR> <TR VALIGN="top| <TD>KB</TD> <TD>F1</TD> <TD>Tek</TD> <TD>key_f11

</TD> </TR> <TR VALIGN="top| <TD>KC</TD> <TD>F2</TD> <TD>Tek</TD> <TD>key_f12

</TD> </TR> <TR VALIGN="top| <TD>KD</TD> <TD>F3</TD> <TD>Tek</TD> <TD>key_f13

</TD> </TR> <TR VALIGN="top| <TD>KE</TD> <TD>F4</TD> <TD>Tek</TD> <TD>key_f14

</TD> </TR> <TR VALIGN="top| <TD>KF</TD> <TD>F5</TD> <TD>Tek</TD> <TD>key_f15

</TD> </TR> <TR VALIGN="top| <TD>BC</TD> <TD>Sb</TD> <TD>Tek</TD> <TD>set_background

</TD> </TR> <TR VALIGN="top| <TD>FC</TD> <TD>Sf</TD> <TD>Tek</TD> <TD>set_foreground

</TD> </TR> <TR VALIGN="top| <TD>HS</TD> <TD>mh</TD> <TD>Iris</TD> <TD>enter_dim_mode

</TD> </TR> </TABLE>

XENIX termcap also used to have a set of extension capabilities for forms drawing, designed to take advantage of the IBM PC high-half graphics. They were as follows:

<TABLE> <TR VALIGN="top| <TD ALIGN="center|Cap</TD> <TD ALIGN="center|Graphic

</TD> </TR> <TR VALIGN="top| <TD COLSPAN="2|


</TD> </TR> <TR VALIGN="top| <TD>G2</TD> <TD>upper left

</TD> </TR> <TR VALIGN="top| <TD>G3</TD> <TD>lower left

</TD> </TR> <TR VALIGN="top| <TD>G1</TD> <TD>upper right

</TD> </TR> <TR VALIGN="top| <TD>G4</TD> <TD>lower right

</TD> </TR> <TR VALIGN="top| <TD>GR</TD> <TD>pointing right

</TD> </TR> <TR VALIGN="top| <TD>GL</TD> <TD>pointing left

</TD> </TR> <TR VALIGN="top| <TD>GU</TD> <TD>pointing up

</TD> </TR> <TR VALIGN="top| <TD>GD</TD> <TD>pointing down

</TD> </TR> <TR VALIGN="top| <TD>GH</TD> <TD>horizontal line

</TD> </TR> <TR VALIGN="top| <TD>GV</TD> <TD>vertical line

</TD> </TR> <TR VALIGN="top| <TD>GC</TD> <TD>intersection

</TD> </TR> <TR VALIGN="top| <TD>G6</TD> <TD>upper left

</TD> </TR> <TR VALIGN="top| <TD>G7</TD> <TD>lower left

</TD> </TR> <TR VALIGN="top| <TD>G5</TD> <TD>upper right

</TD> </TR> <TR VALIGN="top| <TD>G8</TD> <TD>lower right

</TD> </TR> <TR VALIGN="top| <TD>Gr</TD> <TD>tee pointing right

</TD> </TR> <TR VALIGN="top| <TD>Gr</TD> <TD>tee pointing left

</TD> </TR> <TR VALIGN="top| <TD>Gu</TD> <TD>tee pointing up

</TD> </TR> <TR VALIGN="top| <TD>Gd</TD> <TD>tee pointing down

</TD> </TR> <TR VALIGN="top| <TD>Gh</TD> <TD>horizontal line

</TD> </TR> <TR VALIGN="top| <TD>Gv</TD> <TD>vertical line

</TD> </TR> <TR VALIGN="top| <TD>Gc</TD> <TD>intersection

</TD> </TR> <TR VALIGN="top| <TD>GG</TD> <TD>acs magic cookie count

</TD> </TR> </TABLE>

If the single-line capabilities occur in an entry, they will automatically be composed into an acsc string. The double-line capabilities 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 extensions are automatically translated:

<TABLE> <TR VALIGN="top| <TD ALIGN="center|IBM</TD> <TD ALIGN="center|XSI

</TD> </TR> <TR VALIGN="top| <TD COLSPAN="2|


</TD> </TR> <TR VALIGN="top| <TD>ksel</TD> <TD>kslt

</TD> </TR> <TR VALIGN="top| <TD>kbtab</TD> <TD>kcbt

</TD> </TR> <TR VALIGN="top| <TD>font0</TD> <TD>s0ds

</TD> </TR> <TR VALIGN="top| <TD>font1</TD> <TD>s1ds

</TD> </TR> <TR VALIGN="top| <TD>font2</TD> <TD>s2ds

</TD> </TR> <TR VALIGN="top| <TD>font3</TD> <TD>s3ds

</TD> </TR> </TABLE>

Additionally, 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). These will be discarded with a warning message.

NOTES

This 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.

SEE ALSO

infocmp?(1), ncurses(3NCURSES), terminfo?(5)

This describes ncurses version 5.9 (patch 20140913).

AUTHOR

Eric S. Raymond <[email protected]> and

Thomas E. Dickey <[email protected]>


Index

NAME

SYNOPSIS

DESCRIPTION

FILES

TRANSLATIONS FROM NONSTANDARD CAPABILITIES

NOTES

SEE ALSO

AUTHOR


More Man Pages