blob: c7a33643f706f1317bdfb1938440a6fcb836216e [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301'\" t
2.\"***************************************************************************
Steve Kondikae271bc2015-11-15 02:50:53 +01003.\" Copyright (c) 1998-2007,2010 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304.\" *
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: *
12.\" *
13.\" The above copyright notice and this permission notice shall be included *
14.\" in all copies or substantial portions of the Software. *
15.\" *
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. *
23.\" *
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 *
27.\" authorization. *
28.\"***************************************************************************
29.\"
Steve Kondikae271bc2015-11-15 02:50:53 +010030.\" $Id: captoinfo.1m,v 1.25 2010/12/04 18:36:44 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053031.TH @CAPTOINFO@ 1M ""
32.ds n 5
33.ds d @TERMINFO@
34.SH NAME
Steve Kondikae271bc2015-11-15 02:50:53 +010035\fB@CAPTOINFO@\fR \- convert a \fItermcap\fR description into a \fIterminfo\fR description
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053036.SH SYNOPSIS
Steve Kondikae271bc2015-11-15 02:50:53 +010037\fB@CAPTOINFO@\fR [\fB\-v\fR\fIn\fR \fIwidth\fR] [\fB\-V\fR] [\fB\-1\fR] [\fB\-w\fR \fIwidth\fR] \fIfile\fR . . .
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053038.SH DESCRIPTION
Steve Kondikae271bc2015-11-15 02:50:53 +010039\fB@CAPTOINFO@\fR looks in each given text
40\fIfile\fR for \fBtermcap\fR descriptions.
41For each
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053042one found, an equivalent \fBterminfo\fR description is written to standard
Steve Kondikae271bc2015-11-15 02:50:53 +010043output.
44Termcap \fBtc\fR capabilities are translated directly to terminfo
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053045\fBuse\fR capabilities.
46.PP
47If no \fIfile\fR is given, then the environment variable \fBTERMCAP\fR is used
Steve Kondikae271bc2015-11-15 02:50:53 +010048for the filename or entry.
49If \fBTERMCAP\fR is a full pathname to a file, only
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053050the terminal whose name is specified in the environment variable \fBTERM\fR is
Steve Kondikae271bc2015-11-15 02:50:53 +010051extracted from that file.
52If the environment variable \fBTERMCAP\fR is not
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053053set, then the file \fB\*d\fR is read.
54.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +010055\fB\-v\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053056print out tracing information on standard error as the program runs.
57.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +010058\fB\-V\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053059print out the version of the program in use on standard error and exit.
60.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +010061\fB\-1\fR
62cause the fields to print out one to a line.
63Otherwise, the fields
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053064will be printed several to a line to a maximum width of 60
65characters.
66.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +010067\fB\-w\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053068change the output to \fIwidth\fR characters.
69.SH FILES
70.TP 20
71\*d
72Compiled terminal description database.
73.SH TRANSLATIONS FROM NONSTANDARD CAPABILITIES
74.PP
75Some obsolete nonstandard capabilities will automatically be translated
76into standard (SVr4/XSI Curses) terminfo capabilities by \fB@CAPTOINFO@\fR.
77Whenever one of these automatic translations is done, the program
78will issue an notification to stderr, inviting the user to check that
79it has not mistakenly translated a completely unknown and random
80capability and/or syntax error.
81.PP
82.TS H
83c c c c
84c c c c
85l l l l.
86Nonstd Std From Terminfo
87name name capability
88_
89BO mr AT&T enter_reverse_mode
90CI vi AT&T cursor_invisible
91CV ve AT&T cursor_normal
92DS mh AT&T enter_dim_mode
93EE me AT&T exit_attribute_mode
94FE LF AT&T label_on
95FL LO AT&T label_off
96XS mk AT&T enter_secure_mode
97EN @7 XENIX key_end
98GE ae XENIX exit_alt_charset_mode
99GS as XENIX enter_alt_charset_mode
100HM kh XENIX key_home
101LD kL XENIX key_dl
102PD kN XENIX key_npage
103PN po XENIX prtr_off
104PS pf XENIX prtr_on
105PU kP XENIX key_ppage
106RT @8 XENIX kent
107UP ku XENIX kcuu1
108KA k; Tek key_f10
109KB F1 Tek key_f11
110KC F2 Tek key_f12
111KD F3 Tek key_f13
112KE F4 Tek key_f14
113KF F5 Tek key_f15
114BC Sb Tek set_background
115FC Sf Tek set_foreground
116HS mh Iris enter_dim_mode
117.TE
118.PP
119XENIX termcap also used to have a set of extension capabilities
120for forms drawing, designed to take advantage of the IBM PC
Steve Kondikae271bc2015-11-15 02:50:53 +0100121high-half graphics.
122They were as follows:
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530123.PP
124.TS H
125c c
126l l.
127Cap Graphic
128_
129G2 upper left
130G3 lower left
131G1 upper right
132G4 lower right
133GR pointing right
134GL pointing left
135GU pointing up
136GD pointing down
137GH horizontal line
138GV vertical line
139GC intersection
140G6 upper left
141G7 lower left
142G5 upper right
143G8 lower right
144Gr tee pointing right
145Gr tee pointing left
146Gu tee pointing up
147Gd tee pointing down
148Gh horizontal line
149Gv vertical line
150Gc intersection
151GG acs magic cookie count
152.TE
153.PP
154If the single-line capabilities occur in an entry, they will automatically
Steve Kondikae271bc2015-11-15 02:50:53 +0100155be composed into an \fIacsc\fR string.
156The double-line capabilities and
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530157\fBGG\fR are discarded with a warning message.
158.PP
159IBM's AIX has a terminfo facility descended from SVr1 terminfo but incompatible
Steve Kondikae271bc2015-11-15 02:50:53 +0100160with the SVr4 format.
161The following AIX extensions are automatically
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530162translated:
163.TS
164c c
165l l.
166IBM XSI
167_
168ksel kslt
169kbtab kcbt
170font0 s0ds
171font1 s1ds
172font2 s2ds
173font3 s3ds
174.TE
175.PP
176Additionally, the AIX \fIbox1\fR capability will be automatically translated to
177an \fIacsc\fR string.
178.PP
179Hewlett-Packard's terminfo library supports two nonstandard terminfo
180capabilities \fImeml\fR (memory lock) and \fImemu\fR (memory unlock).
181These will be discarded with a warning message.
182.SH NOTES
Steve Kondikae271bc2015-11-15 02:50:53 +0100183This utility is actually a link to \fB@TIC@\fR(1M), running in \fI\-I\fR mode.
184You can use other \fB@TIC@\fR options such as \fB\-f\fR and \fB\-x\fR.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530185.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100186The trace option is not identical to SVr4's.
187Under SVr4, instead of following
188the \fB\-v\fR with a trace level n, you repeat it n times.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530189.SH SEE ALSO
190\fB@INFOCMP@\fR(1M),
191\fBcurses\fR(3X),
192\fBterminfo\fR(\*n)
193.PP
194This describes \fBncurses\fR
195version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).
196.SH AUTHOR
197Eric S. Raymond <esr@snark.thyrsus.com>
Steve Kondikae271bc2015-11-15 02:50:53 +0100198and
199.br
200Thomas E. Dickey <dickey@invisible-island.net>