1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
4 ****************************************************************************
5 * Copyright (c) 1998,2000 Free Software Foundation, Inc. *
7 * Permission is hereby granted, free of charge, to any person obtaining a *
8 * copy of this software and associated documentation files (the *
9 * "Software"), to deal in the Software without restriction, including *
10 * without limitation the rights to use, copy, modify, merge, publish, *
11 * distribute, distribute with modifications, sublicense, and/or sell *
12 * copies of the Software, and to permit persons to whom the Software is *
13 * furnished to do so, subject to the following conditions: *
15 * The above copyright notice and this permission notice shall be included *
16 * in all copies or substantial portions of the Software. *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
21 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
22 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
23 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
24 * THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
26 * Except as contained in this notice, the name(s) of the above copyright *
27 * holders shall not be used in advertising or otherwise to promote the *
28 * sale, use or other dealings in this Software without prior written *
30 ****************************************************************************
31 * @Id: captoinfo.1m,v 1.16 2000/08/13 01:56:49 tom Exp @
35 <TITLE>captoinfo 1m</TITLE>
36 <link rev=made href="mailto:bug-ncurses@gnu.org">
37 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
43 <!-- Manpage converted by man2html 3.0.1 -->
47 <STRONG>captoinfo</STRONG> - convert a <EM>termcap</EM> description into a <EM>terminfo</EM>
52 <H2>SYNOPSIS</H2><PRE>
53 <STRONG>captoinfo</STRONG> [<STRONG>-v</STRONG><EM>n</EM> <EM>width</EM>] [<STRONG>-V</STRONG>] [<STRONG>-1</STRONG>] [<STRONG>-w</STRONG> <EM>width</EM>] <EM>file</EM> . . .
57 <H2>DESCRIPTION</H2><PRE>
58 <STRONG>captoinfo</STRONG> looks in <EM>file</EM> for <STRONG>termcap</STRONG> descriptions. For
59 each one found, an equivalent <STRONG>terminfo</STRONG> description is
60 written to standard output. Termcap <STRONG>tc</STRONG> capabilities are
61 translated directly to terminfo <STRONG>use</STRONG> capabilities.
63 If no <EM>file</EM> is given, then the environment variable <STRONG>TERMCAP</STRONG>
64 is used for the filename or entry. If <STRONG>TERMCAP</STRONG> is a full
65 pathname to a file, only the terminal whose name is speci-
66 fied in the environment variable <STRONG>TERM</STRONG> is extracted from
67 that file. If the environment variable <STRONG>TERMCAP</STRONG> is not
68 set, then the file <STRONG>/usr/share/terminfo</STRONG> is read.
70 <STRONG>-v</STRONG> print out tracing information on standard error as
73 <STRONG>-V</STRONG> print out the version of the program in use on stan-
76 <STRONG>-1</STRONG> cause the fields to print out one to a line. Other-
77 wise, the fields will be printed several to a line to
78 a maximum width of 60 characters.
80 <STRONG>-w</STRONG> change the output to <EM>width</EM> characters.
85 /usr/share/terminfo Compiled terminal description
90 <H2>TRANSLATIONS FROM NONSTANDARD CAPABILITIES</H2><PRE>
91 Some obsolete nonstandard capabilities will automatically
92 be translated into standard (SVr4/XSI Curses) terminfo
93 capabilities by <STRONG>captoinfo</STRONG>. Whenever one of these auto-
94 matic translations is done, the program will issue an
95 notification to stderr, inviting the user to check that it
96 has not mistakenly translated a completely unknown and
97 random capability and/or syntax error.
99 Nonstd Std From Terminfo
101 -----------------------------------------------
102 BO mr AT&T enter_reverse_mode
103 CI vi AT&T cursor_invisible
104 CV ve AT&T cursor_normal
105 DS mh AT&T enter_dim_mode
106 EE me AT&T exit_attribute_mode
108 FE LF AT&T label_on
109 FL LO AT&T label_off
110 XS mk AT&T enter_secure_mode
112 GE ae XENIX exit_alt_charset_mode
113 GS as XENIX enter_alt_charset_mode
116 PD kN XENIX key_npage
119 PU kP XENIX key_ppage
128 BC Sb Tek set_background
129 FC Sf Tek set_foreground
130 HS mh Iris enter_dim_mode
132 XENIX termcap also used to have a set of extension capa-
133 bilities for forms drawing, designed to take advantage of
134 the IBM PC high-half graphics. They were as follows:
137 -----------------------------
153 Gr tee pointing right
160 GG acs magic cookie count
162 If the single-line capabilities occur in an entry, they
163 will automatically be composed into an <STRONG>acsc</STRONG> string. The
164 double-line capabilities and <STRONG>GG</STRONG> are discarded with a warn-
167 IBM's AIX has a terminfo facility descended from SVr1 ter-
168 minfo but incompatible with the SVr4 format. The following
169 AIX extensions are automatically translated:
180 Additionally, the AIX <STRONG>box1</STRONG> capability will be automati-
181 cally translated to an <STRONG>acsc</STRONG> string.
183 Hewlett-Packard's terminfo library supports two nonstan-
184 dard terminfo capabilities <STRONG>meml</STRONG> (memory lock) and <STRONG>memu</STRONG>
185 (memory unlock). These will be discarded with a warning
191 This utility is actually a link to <STRONG><A HREF="tic.1m.html">tic(1m)</A></STRONG>, running in <EM>-I</EM>
192 mode. You can use other <EM>tic</EM> options such as <STRONG>-f</STRONG> and <STRONG>-x</STRONG>.
194 The trace option isn't identical to SVr4's. Under SVr4,
195 instead of following the -v with a trace level n, you
200 <H2>SEE ALSO</H2><PRE>
201 <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG>, <STRONG><A HREF="terminfo.5.html">terminfo(5)</A></STRONG>
206 Eric S. Raymond <esr@snark.thyrsus.com>
225 Man(1) output converted with
226 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>