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.58 2023/12/23 16:28:31 tom Exp $
32 .TH @CAPTOINFO@ 1M 2023-12-23 "ncurses 6.4" "User commands"
44 \fB\%@CAPTOINFO@\fP \-
45 convert a \fItermcap\fP description into a \fI\%term\%info\fP description
54 \fB\%@CAPTOINFO@\fP translates terminal descriptions.
55 It looks in each given text \fIfile\fP for \fI\%termcap\fP entries and,
57 writes an equivalent \fI\%\%term\%info\fP description to the standard
59 \fI\%termcap\fP \fBtc\fP capabilities translate to \fI\%\%term\%info\fP
60 \*(``\fBuse\fP\*('' capabilities.
62 If no \fIfile\fPs are specified,
63 \fB\%@CAPTOINFO@\fP interprets the content of the environment variable
64 \fI\%TERMCAP\fP as a file name,
65 and extracts only the entry for the terminal named in the environment
66 variable \fITERM\fP from it.
67 If the environment variable \fI\%TERMCAP\fP is not set,
68 \fB\%@CAPTOINFO@\fP reads
71 This utility is implemented as a link to \fB\%@TIC@\fP(1M),
75 You can use other \fB\%@TIC@\fP options such as
82 The \fB\-V\fP option reports the version of \fI\%ncurses\fP associated
83 with this program and exits with a successful status.
84 .SS "Translations from Nonstandard Capabilities"
85 \fB\%@CAPTOINFO@\fP translates some obsolete,
86 nonstandard capabilities into standard
88 \fI\%\%term\%info\fP capabilities.
89 It issues a diagnostic to the standard error stream for each,
90 inviting the user to check that it has not mistakenly translated an
91 unknown or mistyped capability name.
99 Obsolete Standard Origin \f(BIterminfo\fP capability
101 BO mr AT&T enter_reverse_mode
102 CI vi AT&T cursor_invisible
103 CV ve AT&T cursor_normal
104 DS mh AT&T enter_dim_mode
105 EE me AT&T exit_attribute_mode
108 XS mk AT&T enter_secure_mode
110 GE ae XENIX exit_alt_charset_mode
111 GS as XENIX enter_alt_charset_mode
114 PD kN XENIX key_npage
117 PU kP XENIX key_ppage
120 KA k; Tektronix key_f10
121 KB F1 Tektronix key_f11
122 KC F2 Tektronix key_f12
123 KD F3 Tektronix key_f13
124 KE F4 Tektronix key_f14
125 KF F5 Tektronix key_f15
126 BC Sb Tektronix set_background
127 FC Sf Tektronix set_foreground
128 HS mh IRIX enter_dim_mode
131 XENIX \fI\%termcap\fP had a set of extension capabilities,
132 corresponding to box drawing characters of CCSID
133 (\*(``code page\*('') 437,
140 \f(BItermcap\fP Name Graphic
144 G1 upper right corner
145 G4 lower right corner
146 GR tee pointing right
153 G6 double upper left corner
154 G7 double lower left corner
155 G5 double upper right corner
156 G8 double lower right corner
157 Gr double tee pointing right
158 Gr double tee pointing left
159 Gu double tee pointing up
160 Gd double tee pointing down
161 Gh double horizontal line
162 Gv double vertical line
163 Gc double intersection
164 .\" TODO: There are about 40 box drawing code points in CCSID 437;
165 .\" were there no XENIX capabilities for the mixed single- and double-
166 .\" line intersections?
168 .\" TODO: GG doesn't seem to fit with the others; explain it.
169 GG ACS magic cookie count
172 \fB\%@CAPTOINFO@\fP composes single-line capabilities into an \fBacsc\fP
174 and discards \fBGG\fP and double-line capabilities with a warning
177 IBM's AIX has a \fI\%\%term\%info\fP facility descended from SVr1
178 \fI\%\%term\%info\fP,
179 but which is incompatible with the SVr4 format.
180 \fB\%@CAPTOINFO@\fP translates the following AIX extensions.
197 this program translates the AIX \fBbox1\fP capability to an \fBacsc\fP
200 The HP-UX \fI\%\%term\%info\fP library supports two nonstandard
201 \fI\%\%term\%info\fP capabilities,
202 \fBmeml\fP (memory lock) and \fBmemu\fP (memory unlock).
203 \fB\%@CAPTOINFO@\fP discards these with a warning message.
207 default \fI\%termcap\fP terminal capability database
210 Issue 7 (2009) describes \fBtic\fP briefly,
211 but omits this program.
213 SVr4 systems provide \fB\%captoinfo\fP as a separate application from
217 option does not accept a trace level argument
224 NetBSD does not provide this application.
226 Eric S. Raymond <esr@snark.thyrsus.com>
229 Thomas E. Dickey <dickey@invisible\-island.net>
231 \fB\%@INFOCMP@\fP(1M),