2 .\"***************************************************************************
3 .\" Copyright 2018-2022,2023 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.44 2023/09/16 23:39:05 tom Exp $
32 .TH @CAPTOINFO@ 1M 2023-09-16 "ncurses 6.4" "User commands"
36 \fB\%@CAPTOINFO@\fP \-
37 convert a \fItermcap\fR description into a \fIterminfo\fR description
44 \fB@CAPTOINFO@\fR \fB\-V\fR
46 \fB@CAPTOINFO@\fP looks in each given text
47 \fIfile\fP for \fBtermcap\fP descriptions.
49 one found, an equivalent \fBterminfo\fP description is written to standard
51 Termcap \fBtc\fP capabilities are translated directly to terminfo
52 \fBuse\fP capabilities.
54 If no \fIfile\fP is given, then the environment variable \fBTERMCAP\fP is used
55 for the filename or entry.
56 If \fBTERMCAP\fP is a full pathname to a file, only
57 the terminal whose name is specified in the environment variable \fBTERM\fP is
58 extracted from that file.
59 If the environment variable \fBTERMCAP\fP is not
60 set, then the file \fB\*d\fP is read.
62 This utility is implemented as a link to \fB@TIC@\fP(1M),
66 You can use other \fB@TIC@\fP options such as
76 Compiled terminal description database.
77 .SH TRANSLATIONS FROM NONSTANDARD CAPABILITIES
78 Some obsolete nonstandard capabilities will automatically be translated
79 into standard (SVr4/XSI Curses) terminfo capabilities by \fB@CAPTOINFO@\fP.
80 Whenever one of these automatic translations is done, the program
81 will issue an notification to stderr, inviting the user to check that
82 it has not mistakenly translated a completely unknown and random
83 capability and/or syntax error.
89 Nonstd Std \& Terminfo
90 name name From capability
92 BO mr AT&T enter_reverse_mode
93 CI vi AT&T cursor_invisible
94 CV ve AT&T cursor_normal
95 DS mh AT&T enter_dim_mode
96 EE me AT&T exit_attribute_mode
99 XS mk AT&T enter_secure_mode
101 GE ae XENIX exit_alt_charset_mode
102 GS as XENIX enter_alt_charset_mode
105 PD kN XENIX key_npage
108 PU kP XENIX key_ppage
117 BC Sb Tek set_background
118 FC Sf Tek set_foreground
119 HS mh Iris enter_dim_mode
122 XENIX termcap also used to have a set of extension capabilities
123 for forms drawing, designed to take advantage of the IBM PC
125 They were as follows:
147 Gr tee pointing right
154 GG acs magic cookie count
157 If the single-line capabilities occur in an entry, they will automatically
158 be composed into an \fBacsc\fP string.
159 The double-line capabilities and
160 \fBGG\fP are discarded with a warning message.
162 IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible
163 with the SVr4 format.
164 The following AIX extensions are automatically
180 Additionally, the AIX \fIbox1\fP capability will be automatically translated to
181 an \fBacsc\fP string.
183 Hewlett-Packard's terminfo library supports two nonstandard terminfo
184 capabilities \fBmeml\fP (memory lock) and \fBmemu\fP (memory unlock).
185 These will be discarded with a warning message.
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>