blob: 4693b06b36e851424ba1d3cc25bea188a8a15c19 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301'\" t
2.\"***************************************************************************
micky3879b9f5e72025-07-08 18:04:53 -04003.\" Copyright 2018-2023,2024 Thomas E. Dickey *
4.\" Copyright 1998-2010,2016 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05305.\" *
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: *
13.\" *
14.\" The above copyright notice and this permission notice shall be included *
15.\" in all copies or substantial portions of the Software. *
16.\" *
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. *
24.\" *
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 *
28.\" authorization. *
29.\"***************************************************************************
30.\"
micky3879b9f5e72025-07-08 18:04:53 -040031.\" $Id: captoinfo.1m,v 1.63 2024/03/23 20:37:25 tom Exp $
32.TH @CAPTOINFO@ 1M 2024-03-23 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "User commands"
33.ie \n(.g \{\
34.ds `` \(lq
35.ds '' \(rq
36.\}
37.el \{\
38.ie t .ds `` ``
39.el .ds `` ""
40.ie t .ds '' ''
41.el .ds '' ""
42.\}
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053043.SH NAME
micky3879b9f5e72025-07-08 18:04:53 -040044\fB\%@CAPTOINFO@\fP \-
45convert a \fItermcap\fP description into a \fI\%term\%info\fP description
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053046.SH SYNOPSIS
micky3879b9f5e72025-07-08 18:04:53 -040047.B @CAPTOINFO@
48.RI [ tic-option ]
49.RI [ file
50\&.\|.\|.]
51.P
52.B "@CAPTOINFO@ \-V"
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053053.SH DESCRIPTION
micky3879b9f5e72025-07-08 18:04:53 -040054\fB\%@CAPTOINFO@\fP translates terminal descriptions.
55It looks in each given text \fIfile\fP for \fI\%termcap\fP entries and,
56for each one found,
57writes an equivalent \fI\%\%term\%info\fP description to the standard
58output stream.
59\fI\%termcap\fP \fBtc\fP capabilities translate to \fI\%\%term\%info\fP
60\*(``\fBuse\fP\*('' capabilities.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053061.PP
micky3879b9f5e72025-07-08 18:04:53 -040062If no \fIfile\fPs are specified,
63\fB\%@CAPTOINFO@\fP interprets the content of the environment variable
64\fI\%TERMCAP\fP as a file name,
65and extracts only the entry for the terminal named in the environment
66variable \fITERM\fP from it.
67If the environment variable \fI\%TERMCAP\fP is not set,
68\fB\%@CAPTOINFO@\fP reads
69.IR \%/etc/termcap .
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053070.PP
micky3879b9f5e72025-07-08 18:04:53 -040071This utility is implemented as a link to \fB\%@TIC@\fP(1M),
72with the latter's
73.B \-I
74option implied.
75You can use other \fB\%@TIC@\fP options such as
76.BR \-1 ,
77.BR \-f ,
78.BR \-v ,
79.BR \-w ,
80and
81.BR \-x .
82The \fB\-V\fP option reports the version of \fI\%ncurses\fP associated
83with this program and exits with a successful status.
84.SS "Translations from Nonstandard Capabilities"
85\fB\%@CAPTOINFO@\fP translates some obsolete,
86nonstandard capabilities into standard
87(SVr4/XSI Curses)
88\fI\%\%term\%info\fP capabilities.
89It issues a diagnostic to the standard error stream for each,
90inviting the user to check that it has not mistakenly translated an
91unknown or mistyped capability name.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053092.PP
micky3879b9f5e72025-07-08 18:04:53 -040093.\" DWB 3.3 tbl requires the two junk "L" specifiers in the first row.
94.TS
95center;
96Cb S L L
97Cb Cb Cb Cb
98Cb Cb C Lb.
99Name
100Obsolete Standard Origin \f(BIterminfo\fP capability
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530101_
102BO mr AT&T enter_reverse_mode
103CI vi AT&T cursor_invisible
104CV ve AT&T cursor_normal
105DS mh AT&T enter_dim_mode
106EE me AT&T exit_attribute_mode
107FE LF AT&T label_on
108FL LO AT&T label_off
109XS mk AT&T enter_secure_mode
110EN @7 XENIX key_end
111GE ae XENIX exit_alt_charset_mode
112GS as XENIX enter_alt_charset_mode
113HM kh XENIX key_home
114LD kL XENIX key_dl
115PD kN XENIX key_npage
116PN po XENIX prtr_off
117PS pf XENIX prtr_on
118PU kP XENIX key_ppage
119RT @8 XENIX kent
120UP ku XENIX kcuu1
micky3879b9f5e72025-07-08 18:04:53 -0400121KA k; Tektronix key_f10
122KB F1 Tektronix key_f11
123KC F2 Tektronix key_f12
124KD F3 Tektronix key_f13
125KE F4 Tektronix key_f14
126KF F5 Tektronix key_f15
127BC Sb Tektronix set_background
128FC Sf Tektronix set_foreground
129HS mh IRIX enter_dim_mode
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530130.TE
131.PP
micky3879b9f5e72025-07-08 18:04:53 -0400132XENIX \fI\%termcap\fP had a set of extension capabilities,
133corresponding to box drawing characters of CCSID
134(\*(``code page\*('') 437,
135as follows.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530136.PP
micky3879b9f5e72025-07-08 18:04:53 -0400137.TS
138center;
139cb cb
140cb l .
141\f(BItermcap\fP Name Graphic
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530142_
micky3879b9f5e72025-07-08 18:04:53 -0400143G2 upper left corner
144G3 lower left corner
145G1 upper right corner
146G4 lower right corner
147GR tee pointing right
148GL tee pointing left
149GU tee pointing up
150GD tee pointing down
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530151GH horizontal line
152GV vertical line
153GC intersection
micky3879b9f5e72025-07-08 18:04:53 -0400154G6 double upper left corner
155G7 double lower left corner
156G5 double upper right corner
157G8 double lower right corner
158Gr double tee pointing right
159Gr double tee pointing left
160Gu double tee pointing up
161Gd double tee pointing down
162Gh double horizontal line
163Gv double vertical line
164Gc double intersection
165.\" TODO: There are about 40 box drawing code points in CCSID 437;
166.\" were there no XENIX capabilities for the mixed single- and double-
167.\" line intersections?
168.\"
169.\" TODO: GG doesn't seem to fit with the others; explain it.
170GG ACS magic cookie count
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530171.TE
172.PP
micky3879b9f5e72025-07-08 18:04:53 -0400173\fB\%@CAPTOINFO@\fP composes single-line capabilities into an \fBacsc\fP
174string,
175and discards \fBGG\fP and double-line capabilities with a warning
176diagnostic.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530177.PP
micky3879b9f5e72025-07-08 18:04:53 -0400178IBM's AIX has a \fI\%\%term\%info\fP facility descended from SVr1
179\fI\%\%term\%info\fP,
180but which is incompatible with the SVr4 format.
181\fB\%@CAPTOINFO@\fP translates the following AIX extensions.
182.PP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530183.TS
micky3879b9f5e72025-07-08 18:04:53 -0400184center;
185cb cb
186l l .
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530187IBM XSI
188_
189ksel kslt
190kbtab kcbt
191font0 s0ds
192font1 s1ds
193font2 s2ds
194font3 s3ds
195.TE
196.PP
micky3879b9f5e72025-07-08 18:04:53 -0400197Additionally,
198this program translates the AIX \fBbox1\fP capability to an \fBacsc\fP
199string.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530200.PP
micky3879b9f5e72025-07-08 18:04:53 -0400201The HP-UX \fI\%\%term\%info\fP library supports two nonstandard
202\fI\%\%term\%info\fP capabilities,
203\fBmeml\fP (memory lock) and \fBmemu\fP (memory unlock).
204\fB\%@CAPTOINFO@\fP discards these with a warning message.
205.SH FILES
206.TP
207.I /etc/termcap
208default \fI\%termcap\fP terminal capability database
209.SH PORTABILITY
210X/Open Curses,
211Issue 7 (2009) describes \fBtic\fP briefly,
212but omits this program.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530213.PP
micky3879b9f5e72025-07-08 18:04:53 -0400214SVr4 systems provide \fB\%captoinfo\fP as a separate application from
215\fBtic\fP.
216Its
217.B \-v
218option does not accept a trace level argument
219.IR n ;
220repeat
221.B \-v
222.I n
223times instead.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530224.PP
micky3879b9f5e72025-07-08 18:04:53 -0400225NetBSD does not provide this application.
226.SH AUTHORS
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530227Eric S. Raymond <esr@snark.thyrsus.com>
Steve Kondikae271bc2015-11-15 02:50:53 +0100228and
229.br
micky3879b9f5e72025-07-08 18:04:53 -0400230Thomas E. Dickey <dickey@invisible\-island.net>
231.SH SEE ALSO
232\fB\%@INFOCMP@\fP(1M),
233\fB\%@TIC@\fP(1M),
234\fB\%curses\fP(3X),
235\fB\%terminfo\fP(5)