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