]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/captoinfo.1m.html
1751dc058c92b32538888d53b9a646ca1c21201c
[ncurses.git] / doc / html / man / captoinfo.1m.html
1 <!-- 
2   * t
3   ****************************************************************************
4   * Copyright (c) 1998-2007,2010 Free Software Foundation, Inc.              *
5   *                                                                          *
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   * @Id: captoinfo.1m,v 1.25 2010/12/04 18:36:44 tom Exp @
31 -->
32 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
33 <HTML>
34 <HEAD>
35 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
36 <meta name="generator" content="Manpage converted by man2html - see http://invisible-island.net/scripts/readme.html#others_scripts">
37 <TITLE>captoinfo 1m</TITLE>
38 <link rev=made href="mailto:bug-ncurses@gnu.org">
39 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
40 </HEAD>
41 <BODY>
42 <H1>captoinfo 1m</H1>
43 <HR>
44 <PRE>
45 <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>                                             <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>
46
47
48
49
50 </PRE>
51 <H2><a name="h2-NAME">NAME</a></H2><PRE>
52        <STRONG>captoinfo</STRONG>  - convert a <EM>termcap</EM> description into a <EM>terminfo</EM>
53        description
54
55
56 </PRE>
57 <H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
58        <STRONG>captoinfo</STRONG> [<STRONG>-v</STRONG><EM>n</EM> <EM>width</EM>]  [<STRONG>-V</STRONG>] [<STRONG>-1</STRONG>] [<STRONG>-w</STRONG> <EM>width</EM>] <EM>file</EM> . . .
59
60
61 </PRE>
62 <H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
63        <STRONG>captoinfo</STRONG> looks  in  each  given  text  <EM>file</EM>  for  <STRONG>termcap</STRONG>
64        descriptions.   For each one found, an equivalent <STRONG>terminfo</STRONG>
65        description is written to  standard  output.   Termcap  <STRONG>tc</STRONG>
66        capabilities are translated directly to terminfo <STRONG>use</STRONG> capa-
67        bilities.
68
69        If no <EM>file</EM> is given, then the environment variable <STRONG>TERMCAP</STRONG>
70        is  used  for the filename or entry.  If <STRONG>TERMCAP</STRONG> is a full
71        pathname to a file, only the terminal whose name is speci-
72        fied  in  the  environment variable <STRONG>TERM</STRONG> is extracted from
73        that file.  If the environment  variable  <STRONG>TERMCAP</STRONG>  is  not
74        set, then the file <STRONG>/usr/share/terminfo</STRONG> is read.
75
76        <STRONG>-v</STRONG>   print  out  tracing  information on standard error as
77             the program runs.
78
79        <STRONG>-V</STRONG>   print out the version of the program in use on  stan-
80             dard error and exit.
81
82        <STRONG>-1</STRONG>   cause  the fields to print out one to a line.  Other-
83             wise, the fields will be printed several to a line to
84             a maximum width of 60 characters.
85
86        <STRONG>-w</STRONG>   change the output to <EM>width</EM> characters.
87
88
89 </PRE>
90 <H2><a name="h2-FILES">FILES</a></H2><PRE>
91        /usr/share/terminfo Compiled  terminal  description  data-
92                            base.
93
94
95 </PRE>
96 <H2><a name="h2-TRANSLATIONS-FROM-NONSTANDARD-CAPABILITIES">TRANSLATIONS FROM NONSTANDARD CAPABILITIES</a></H2><PRE>
97        Some obsolete nonstandard capabilities will  automatically
98        be  translated  into  standard  (SVr4/XSI Curses) terminfo
99        capabilities by <STRONG>captoinfo</STRONG>.  Whenever one  of  these  auto-
100        matic  translations  is  done,  the  program will issue an
101        notification to stderr, inviting the user to check that it
102        has  not  mistakenly  translated  a completely unknown and
103        random capability and/or syntax error.
104
105        Nonstd   Std    From           Terminfo
106         name    name                 capability
107        -----------------------------------------------
108        BO       mr     AT&amp;T    enter_reverse_mode
109        CI       vi     AT&amp;T    cursor_invisible
110        CV       ve     AT&amp;T    cursor_normal
111        DS       mh     AT&amp;T    enter_dim_mode
112        EE       me     AT&amp;T    exit_attribute_mode
113        FE       LF     AT&amp;T    label_on
114        FL       LO     AT&amp;T    label_off
115        XS       mk     AT&amp;T    enter_secure_mode
116        EN       @7     XENIX   key_end
117        GE       ae     XENIX   exit_alt_charset_mode
118        GS       as     XENIX   enter_alt_charset_mode
119        HM       kh     XENIX   key_home
120
121        LD       kL     XENIX   key_dl
122        PD       kN     XENIX   key_npage
123        PN       po     XENIX   prtr_off
124        PS       pf     XENIX   prtr_on
125        PU       kP     XENIX   key_ppage
126        RT       @8     XENIX   kent
127        UP       ku     XENIX   kcuu1
128        KA       k;     Tek     key_f10
129        KB       F1     Tek     key_f11
130        KC       F2     Tek     key_f12
131        KD       F3     Tek     key_f13
132        KE       F4     Tek     key_f14
133        KF       F5     Tek     key_f15
134        BC       Sb     Tek     set_background
135        FC       Sf     Tek     set_foreground
136        HS       mh     Iris    enter_dim_mode
137
138        XENIX termcap also used to have a set of  extension  capa-
139        bilities  for forms drawing, designed to take advantage of
140        the IBM PC high-half graphics.  They were as follows:
141
142        Cap          Graphic
143        -----------------------------
144        G2    upper left
145        G3    lower left
146        G1    upper right
147        G4    lower right
148        GR    pointing right
149        GL    pointing left
150        GU    pointing up
151        GD    pointing down
152        GH    horizontal line
153        GV    vertical line
154        GC    intersection
155        G6    upper left
156        G7    lower left
157        G5    upper right
158        G8    lower right
159        Gr    tee pointing right
160        Gr    tee pointing left
161        Gu    tee pointing up
162        Gd    tee pointing down
163        Gh    horizontal line
164        Gv    vertical line
165        Gc    intersection
166        GG    acs magic cookie count
167
168        If the single-line capabilities occur in  an  entry,  they
169        will  automatically  be composed into an <EM>acsc</EM> string.  The
170        double-line capabilities and <STRONG>GG</STRONG> are discarded with a warn-
171        ing message.
172
173        IBM's AIX has a terminfo facility descended from SVr1 ter-
174        minfo but incompatible with the SVr4 format.  The  follow-
175        ing AIX extensions are automatically translated:
176
177         IBM    XSI
178        -------------
179        ksel    kslt
180        kbtab   kcbt
181        font0   s0ds
182        font1   s1ds
183        font2   s2ds
184        font3   s3ds
185
186        Additionally,  the  AIX  <EM>box1</EM> capability will be automati-
187        cally translated to an <EM>acsc</EM> string.
188
189        Hewlett-Packard's terminfo library supports  two  nonstan-
190        dard  terminfo  capabilities  <EM>meml</EM>  (memory lock) and <EM>memu</EM>
191        (memory unlock).  These will be discarded with  a  warning
192        message.
193
194
195 </PRE>
196 <H2><a name="h2-NOTES">NOTES</a></H2><PRE>
197        This  utility is actually a link to <STRONG><A HREF="tic.1m.html">tic(1m)</A></STRONG>, running in <EM>-I</EM>
198        mode.  You can use other <STRONG>tic</STRONG> options such as <STRONG>-f</STRONG> and  <STRONG>-x</STRONG>.
199
200        The trace option is not identical to SVr4's.  Under  SVr4,
201        instead  of  following  the  <STRONG>-v</STRONG>  with a trace level n, you
202        repeat it n times.
203
204
205 </PRE>
206 <H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
207        <STRONG><A HREF="infocmp.1m.html">infocmp(1m)</A></STRONG>, <STRONG><A HREF="ncurses.3x.html">curses(3x)</A></STRONG>, <STRONG><A HREF="terminfo.5.html">terminfo(5)</A></STRONG>
208
209        This describes <STRONG>ncurses</STRONG> version 5.9 (patch 20150215).
210
211
212 </PRE>
213 <H2><a name="h2-AUTHOR">AUTHOR</a></H2><PRE>
214        Eric S. Raymond &lt;esr@snark.thyrsus.com&gt; and
215        Thomas E. Dickey &lt;dickey@invisible-island.net&gt;
216
217
218
219                                                           <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>
220 </PRE>
221 <div class="nav">
222 <ul>
223 <li><a href="#h2-NAME">NAME</a></li>
224 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
225 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a></li>
226 <li><a href="#h2-FILES">FILES</a></li>
227 <li><a href="#h2-TRANSLATIONS-FROM-NONSTANDARD-CAPABILITIES">TRANSLATIONS FROM NONSTANDARD CAPABILITIES</a></li>
228 <li><a href="#h2-NOTES">NOTES</a></li>
229 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>
230 <li><a href="#h2-AUTHOR">AUTHOR</a></li>
231 </ul>
232 </div>
233 </BODY>
234 </HTML>