2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2010,2016 Free Software Foundation, Inc. *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a *
6 .\" copy of this software and associated documentation files (the *
7 .\" "Software"), to deal in the Software without restriction, including *
8 .\" without limitation the rights to use, copy, modify, merge, publish, *
9 .\" distribute, distribute with modifications, sublicense, and/or sell *
10 .\" copies of the Software, and to permit persons to whom the Software is *
11 .\" furnished to do so, subject to the following conditions: *
13 .\" The above copyright notice and this permission notice shall be included *
14 .\" in all copies or substantial portions of the Software. *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
24 .\" Except as contained in this notice, the name(s) of the above copyright *
25 .\" holders shall not be used in advertising or otherwise to promote the *
26 .\" sale, use or other dealings in this Software without prior written *
28 .\"***************************************************************************
30 .\" $Id: captoinfo.1m,v 1.26 2016/10/15 17:26:09 tom Exp $
33 .ds d /usr/local/share/terminfo
35 \fBcaptoinfo\fR \- convert a \fItermcap\fR description into a \fIterminfo\fR description
37 \fBcaptoinfo\fR [\fB\-v\fR\fIn\fR \fIwidth\fR] [\fB\-V\fR] [\fB\-1\fR] [\fB\-w\fR \fIwidth\fR] \fIfile\fR . . .
39 \fBcaptoinfo\fR looks in each given text
40 \fIfile\fR for \fBtermcap\fR descriptions.
42 one found, an equivalent \fBterminfo\fR description is written to standard
44 Termcap \fBtc\fR capabilities are translated directly to terminfo
45 \fBuse\fR capabilities.
47 If no \fIfile\fR is given, then the environment variable \fBTERMCAP\fR is used
48 for the filename or entry.
49 If \fBTERMCAP\fR is a full pathname to a file, only
50 the terminal whose name is specified in the environment variable \fBTERM\fR is
51 extracted from that file.
52 If the environment variable \fBTERMCAP\fR is not
53 set, then the file \fB\*d\fR is read.
56 print out tracing information on standard error as the program runs.
59 print out the version of the program in use on standard error and exit.
62 cause the fields to print out one to a line.
64 will be printed several to a line to a maximum width of 60
68 change the output to \fIwidth\fR characters.
72 Compiled terminal description database.
73 .SH TRANSLATIONS FROM NONSTANDARD CAPABILITIES
75 Some obsolete nonstandard capabilities will automatically be translated
76 into standard (SVr4/XSI Curses) terminfo capabilities by \fBcaptoinfo\fR.
77 Whenever one of these automatic translations is done, the program
78 will issue an notification to stderr, inviting the user to check that
79 it has not mistakenly translated a completely unknown and random
80 capability and/or syntax error.
86 Nonstd Std From Terminfo
89 BO mr AT&T enter_reverse_mode
90 CI vi AT&T cursor_invisible
91 CV ve AT&T cursor_normal
92 DS mh AT&T enter_dim_mode
93 EE me AT&T exit_attribute_mode
96 XS mk AT&T enter_secure_mode
98 GE ae XENIX exit_alt_charset_mode
99 GS as XENIX enter_alt_charset_mode
102 PD kN XENIX key_npage
105 PU kP XENIX key_ppage
114 BC Sb Tek set_background
115 FC Sf Tek set_foreground
116 HS mh Iris enter_dim_mode
119 XENIX termcap also used to have a set of extension capabilities
120 for forms drawing, designed to take advantage of the IBM PC
122 They were as follows:
144 Gr tee pointing right
151 GG acs magic cookie count
154 If the single-line capabilities occur in an entry, they will automatically
155 be composed into an \fBacsc\fR string.
156 The double-line capabilities and
157 \fBGG\fR are discarded with a warning message.
159 IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible
160 with the SVr4 format.
161 The following AIX extensions are automatically
176 Additionally, the AIX \fIbox1\fR capability will be automatically translated to
177 an \fBacsc\fR string.
179 Hewlett-Packard's terminfo library supports two nonstandard terminfo
180 capabilities \fBmeml\fR (memory lock) and \fBmemu\fR (memory unlock).
181 These will be discarded with a warning message.
183 This utility is actually a link to \fBtic\fR(1M), running in \fI\-I\fR mode.
184 You can use other \fBtic\fR options such as \fB\-f\fR and \fB\-x\fR.
186 The trace option is not identical to SVr4's.
187 Under SVr4, instead of following
188 the \fB\-v\fR with a trace level n, you repeat it n times.
194 This describes \fBncurses\fR
195 version 6.0 (patch 20171007).
197 Eric S. Raymond <esr@snark.thyrsus.com>
200 Thomas E. Dickey <dickey@invisible-island.net>