232 lines
9.3 KiB
HTML
232 lines
9.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of captoinfo</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>captoinfo</H1>
|
|
Section: User Commands (1)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
<B>captoinfo</B> - convert a <I>termcap</I> description into a <I>terminfo</I> description
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>captoinfo</B> [<B>-v</B><I>n</I> <I>width</I>] [<B>-V</B>] [<B>-1</B>] [<B>-w</B> <I>width</I>] <I>file</I> ...
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>captoinfo</B> looks in each given text
|
|
<I>file</I> for <B>termcap</B> descriptions.
|
|
For each
|
|
one found, an equivalent <B>terminfo</B> description is written to standard
|
|
output.
|
|
Termcap <B>tc</B> capabilities are translated directly to terminfo
|
|
<B>use</B> capabilities.
|
|
<P>
|
|
|
|
If no <I>file</I> is given, then the environment variable <B>TERMCAP</B> is used
|
|
for the filename or entry.
|
|
If <B>TERMCAP</B> is a full pathname to a file, only
|
|
the terminal whose name is specified in the environment variable <B>TERM</B> is
|
|
extracted from that file.
|
|
If the environment variable <B>TERMCAP</B> is not
|
|
set, then the file <B>/etc/terminfo</B> is read.
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-v</B><DD>
|
|
print out tracing information on standard error as the program runs.
|
|
<DT id="2"><B>-V</B><DD>
|
|
print out the version of the program in use on standard error and exit.
|
|
<DT id="3"><B>-1</B><DD>
|
|
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.
|
|
<DT id="4"><B>-w</B><DD>
|
|
change the output to <I>width</I> characters.
|
|
</DL>
|
|
<A NAME="lbAE"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="5">/etc/terminfo<DD>
|
|
Compiled terminal description database.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>TRANSLATIONS FROM NONSTANDARD CAPABILITIES</H2>
|
|
|
|
<P>
|
|
|
|
Some obsolete nonstandard capabilities will automatically be translated
|
|
into standard (SVr4/XSI Curses) terminfo capabilities by <B>captoinfo</B>.
|
|
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.
|
|
<P>
|
|
|
|
<TABLE>
|
|
<TR VALIGN=top><TD ALIGN=center>Nonstd</TD><TD ALIGN=center>Std</TD><TD ALIGN=center>From</TD><TD ALIGN=center>Terminfo<BR></TD></TR>
|
|
<TR VALIGN=top><TD ALIGN=center>name</TD><TD ALIGN=center>name</TD><TD ALIGN=center></TD><TD ALIGN=center>capability<BR></TD></TR>
|
|
<TR VALIGN=top><TD COLSPAN=4><HR></TD></TR>
|
|
<TR VALIGN=top><TD>BO</TD><TD>mr</TD><TD>AT&T</TD><TD>enter_reverse_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>CI</TD><TD>vi</TD><TD>AT&T</TD><TD>cursor_invisible<BR></TD></TR>
|
|
<TR VALIGN=top><TD>CV</TD><TD>ve</TD><TD>AT&T</TD><TD>cursor_normal<BR></TD></TR>
|
|
<TR VALIGN=top><TD>DS</TD><TD>mh</TD><TD>AT&T</TD><TD>enter_dim_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>EE</TD><TD>me</TD><TD>AT&T</TD><TD>exit_attribute_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>FE</TD><TD>LF</TD><TD>AT&T</TD><TD>label_on<BR></TD></TR>
|
|
<TR VALIGN=top><TD>FL</TD><TD>LO</TD><TD>AT&T</TD><TD>label_off<BR></TD></TR>
|
|
<TR VALIGN=top><TD>XS</TD><TD>mk</TD><TD>AT&T</TD><TD>enter_secure_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>EN</TD><TD>@7</TD><TD>XENIX</TD><TD>key_end<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GE</TD><TD>ae</TD><TD>XENIX</TD><TD>exit_alt_charset_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GS</TD><TD>as</TD><TD>XENIX</TD><TD>enter_alt_charset_mode<BR></TD></TR>
|
|
<TR VALIGN=top><TD>HM</TD><TD>kh</TD><TD>XENIX</TD><TD>key_home<BR></TD></TR>
|
|
<TR VALIGN=top><TD>LD</TD><TD>kL</TD><TD>XENIX</TD><TD>key_dl<BR></TD></TR>
|
|
<TR VALIGN=top><TD>PD</TD><TD>kN</TD><TD>XENIX</TD><TD>key_npage<BR></TD></TR>
|
|
<TR VALIGN=top><TD>PN</TD><TD>po</TD><TD>XENIX</TD><TD>prtr_off<BR></TD></TR>
|
|
<TR VALIGN=top><TD>PS</TD><TD>pf</TD><TD>XENIX</TD><TD>prtr_on<BR></TD></TR>
|
|
<TR VALIGN=top><TD>PU</TD><TD>kP</TD><TD>XENIX</TD><TD>key_ppage<BR></TD></TR>
|
|
<TR VALIGN=top><TD>RT</TD><TD>@8</TD><TD>XENIX</TD><TD>kent<BR></TD></TR>
|
|
<TR VALIGN=top><TD>UP</TD><TD>ku</TD><TD>XENIX</TD><TD>kcuu1<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KA</TD><TD>k;</TD><TD>Tek</TD><TD>key_f10<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KB</TD><TD>F1</TD><TD>Tek</TD><TD>key_f11<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KC</TD><TD>F2</TD><TD>Tek</TD><TD>key_f12<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KD</TD><TD>F3</TD><TD>Tek</TD><TD>key_f13<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KE</TD><TD>F4</TD><TD>Tek</TD><TD>key_f14<BR></TD></TR>
|
|
<TR VALIGN=top><TD>KF</TD><TD>F5</TD><TD>Tek</TD><TD>key_f15<BR></TD></TR>
|
|
<TR VALIGN=top><TD>BC</TD><TD>Sb</TD><TD>Tek</TD><TD>set_background<BR></TD></TR>
|
|
<TR VALIGN=top><TD>FC</TD><TD>Sf</TD><TD>Tek</TD><TD>set_foreground<BR></TD></TR>
|
|
<TR VALIGN=top><TD>HS</TD><TD>mh</TD><TD>Iris</TD><TD>enter_dim_mode<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
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:
|
|
<P>
|
|
|
|
<TABLE>
|
|
<TR VALIGN=top><TD ALIGN=center>Cap</TD><TD ALIGN=center>Graphic<BR></TD></TR>
|
|
<TR VALIGN=top><TD COLSPAN=2><HR></TD></TR>
|
|
<TR VALIGN=top><TD>G2</TD><TD>upper left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G3</TD><TD>lower left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G1</TD><TD>upper right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G4</TD><TD>lower right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GR</TD><TD>pointing right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GL</TD><TD>pointing left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GU</TD><TD>pointing up<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GD</TD><TD>pointing down<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GH</TD><TD>horizontal line<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GV</TD><TD>vertical line<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GC</TD><TD>intersection<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G6</TD><TD>upper left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G7</TD><TD>lower left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G5</TD><TD>upper right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G8</TD><TD>lower right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gr</TD><TD>tee pointing right<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gr</TD><TD>tee pointing left<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gu</TD><TD>tee pointing up<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gd</TD><TD>tee pointing down<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gh</TD><TD>horizontal line<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gv</TD><TD>vertical line<BR></TD></TR>
|
|
<TR VALIGN=top><TD>Gc</TD><TD>intersection<BR></TD></TR>
|
|
<TR VALIGN=top><TD>GG</TD><TD>acs magic cookie count<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
If the single-line capabilities occur in an entry, they will automatically
|
|
be composed into an <B>acsc</B> string.
|
|
The double-line capabilities and
|
|
<B>GG</B> are discarded with a warning message.
|
|
<P>
|
|
|
|
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<BR></TD></TR>
|
|
<TR VALIGN=top><TD COLSPAN=2><HR></TD></TR>
|
|
<TR VALIGN=top><TD>ksel</TD><TD>kslt<BR></TD></TR>
|
|
<TR VALIGN=top><TD>kbtab</TD><TD>kcbt<BR></TD></TR>
|
|
<TR VALIGN=top><TD>font0</TD><TD>s0ds<BR></TD></TR>
|
|
<TR VALIGN=top><TD>font1</TD><TD>s1ds<BR></TD></TR>
|
|
<TR VALIGN=top><TD>font2</TD><TD>s2ds<BR></TD></TR>
|
|
<TR VALIGN=top><TD>font3</TD><TD>s3ds<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
Additionally, the AIX <I>box1</I> capability will be automatically translated to
|
|
an <B>acsc</B> string.
|
|
<P>
|
|
|
|
Hewlett-Packard's terminfo library supports two nonstandard terminfo
|
|
capabilities <B>meml</B> (memory lock) and <B>memu</B> (memory unlock).
|
|
These will be discarded with a warning message.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
This utility is actually a link to <B><A HREF="/cgi-bin/man/man2html?1+tic">tic</A></B>(1), running in <I>-I</I> mode.
|
|
You can use other <B>tic</B> options such as <B>-f</B> and <B>-x</B>.
|
|
<P>
|
|
|
|
The verbose option is not identical to SVr4's.
|
|
Under SVr4, instead of following
|
|
the <B>-v</B> with a trace level n, you repeat it n times.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>PORTABILITY</H2>
|
|
|
|
X/Open Curses, Issue 7 (2009) describes <B>tic</B> briefly,
|
|
but omits this program.
|
|
SVr4 systems provide <B>captoinfo</B> as a separate application from <B>tic</B>.
|
|
<P>
|
|
|
|
NetBSD does not provide this application.
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+infocmp">infocmp</A></B>(1),
|
|
<B>ncurses</B>(3NCURSES),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+terminfo">terminfo</A></B>(5)
|
|
<P>
|
|
|
|
This describes <B>ncurses</B>
|
|
version 6.2 (patch 20200212).
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Eric S. Raymond <<A HREF="mailto:esr@snark.thyrsus.com">esr@snark.thyrsus.com</A>>
|
|
and
|
|
<BR>
|
|
|
|
Thomas E. Dickey <<A HREF="mailto:dickey@invisible-island.net">dickey@invisible-island.net</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="7"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="9"><A HREF="#lbAE">FILES</A><DD>
|
|
<DT id="10"><A HREF="#lbAF">TRANSLATIONS FROM NONSTANDARD CAPABILITIES</A><DD>
|
|
<DT id="11"><A HREF="#lbAG">NOTES</A><DD>
|
|
<DT id="12"><A HREF="#lbAH">PORTABILITY</A><DD>
|
|
<DT id="13"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="14"><A HREF="#lbAJ">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:08 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|