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