]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/captoinfo.1m.html
3b966d499a214ed66082f471f09dfbb6d9047bd1
[ncurses.git] / doc / html / man / captoinfo.1m.html
1 <!--
2   * t
3   ****************************************************************************
4   * Copyright 2018-2022,2023 Thomas E. Dickey                                *
5   * Copyright 1998-2010,2016 Free Software Foundation, Inc.                  *
6   *                                                                          *
7   * Permission is hereby granted, free of charge, to any person obtaining a  *
8   * copy of this software and associated documentation files (the            *
9   * "Software"), to deal in the Software without restriction, including      *
10   * without limitation the rights to use, copy, modify, merge, publish,      *
11   * distribute, distribute with modifications, sublicense, and/or sell       *
12   * copies of the Software, and to permit persons to whom the Software is    *
13   * furnished to do so, subject to the following conditions:                 *
14   *                                                                          *
15   * The above copyright notice and this permission notice shall be included  *
16   * in all copies or substantial portions of the Software.                   *
17   *                                                                          *
18   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
19   * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
20   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
21   * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
22   * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
23   * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
24   * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
25   *                                                                          *
26   * Except as contained in this notice, the name(s) of the above copyright   *
27   * holders shall not be used in advertising or otherwise to promote the     *
28   * sale, use or other dealings in this Software without prior written       *
29   * authorization.                                                           *
30   ****************************************************************************
31   * @Id: captoinfo.1m,v 1.44 2023/09/16 23:39:05 tom Exp @
32 -->
33 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
34 <HTML>
35 <HEAD>
36 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
37 <meta name="generator" content="Manpage converted by man2html - see https://invisible-island.net/scripts/readme.html#others_scripts">
38 <TITLE>captoinfo 1m 2023-09-16 ncurses 6.4 User commands</TITLE>
39 <link rel="author" href="mailto:bug-ncurses@gnu.org">
40
41 </HEAD>
42 <BODY>
43 <H1 class="no-header">captoinfo 1m 2023-09-16 ncurses 6.4 User commands</H1>
44 <PRE>
45 <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>                    User commands                   <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>
46
47
48
49
50 </PRE><H2><a name="h2-NAME">NAME</a></H2><PRE>
51        <STRONG>captoinfo</STRONG> - convert a <EM>termcap</EM> description into a <EM>terminfo</EM> description
52
53
54 </PRE><H2><a name="h2-SYNOPSIS">SYNOPSIS</a></H2><PRE>
55        <STRONG>captoinfo</STRONG> [<EM>tic-option</EM>] <EM>file</EM> ...
56
57        <STRONG>captoinfo</STRONG> <STRONG>-V</STRONG>
58
59
60 </PRE><H2><a name="h2-DESCRIPTION">DESCRIPTION</a></H2><PRE>
61        <STRONG>captoinfo</STRONG>  looks in each given text <EM>file</EM> for <STRONG>termcap</STRONG> descriptions.  For
62        each one found,  an  equivalent  <STRONG>terminfo</STRONG>  description  is  written  to
63        standard  output.   Termcap  <STRONG>tc</STRONG> capabilities are translated directly to
64        terminfo <STRONG>use</STRONG> capabilities.
65
66        If no <EM>file</EM> is given, then the environment variable <STRONG>TERMCAP</STRONG> is used  for
67        the  filename  or entry.  If <STRONG>TERMCAP</STRONG> is a full pathname to a file, only
68        the terminal whose name is specified in the environment  variable  <STRONG>TERM</STRONG>
69        is  extracted  from  that file.  If the environment variable <STRONG>TERMCAP</STRONG> is
70        not set, then the file <STRONG>/usr/share/terminfo</STRONG> is read.
71
72        This utility is implemented as a link to <STRONG><A HREF="tic.1m.html">tic(1m)</A></STRONG>, with the latter's  <STRONG>-I</STRONG>
73        option  implied.  You can use other <STRONG>tic</STRONG> options such as <STRONG>-1</STRONG>, <STRONG>-f</STRONG>, <STRONG>-v</STRONG>, <STRONG>-w</STRONG>,
74        and <STRONG>-x</STRONG>.
75
76
77 </PRE><H2><a name="h2-FILES">FILES</a></H2><PRE>
78        /usr/share/terminfo Compiled terminal description database.
79
80
81 </PRE><H2><a name="h2-TRANSLATIONS-FROM-NONSTANDARD-CAPABILITIES">TRANSLATIONS FROM NONSTANDARD CAPABILITIES</a></H2><PRE>
82        Some obsolete nonstandard capabilities will automatically be translated
83        into  standard  (SVr4/XSI  Curses)  terminfo capabilities by <STRONG>captoinfo</STRONG>.
84        Whenever one of these automatic translations is done, the program  will
85        issue an notification to stderr, inviting the user to check that it has
86        not mistakenly translated a completely unknown  and  random  capability
87        and/or syntax error.
88
89        <STRONG>Nonstd</STRONG>   <STRONG>Std</STRONG>                   <STRONG>Terminfo</STRONG>
90         <STRONG>name</STRONG>    <STRONG>name</STRONG>   <STRONG>From</STRONG>          <STRONG>capability</STRONG>
91        -----------------------------------------------
92        BO       mr     AT&amp;T    enter_reverse_mode
93        CI       vi     AT&amp;T    cursor_invisible
94        CV       ve     AT&amp;T    cursor_normal
95        DS       mh     AT&amp;T    enter_dim_mode
96        EE       me     AT&amp;T    exit_attribute_mode
97        FE       LF     AT&amp;T    label_on
98        FL       LO     AT&amp;T    label_off
99        XS       mk     AT&amp;T    enter_secure_mode
100        EN       @7     XENIX   key_end
101        GE       ae     XENIX   exit_alt_charset_mode
102        GS       as     XENIX   enter_alt_charset_mode
103        HM       kh     XENIX   key_home
104        LD       kL     XENIX   key_dl
105        PD       kN     XENIX   key_npage
106        PN       po     XENIX   prtr_off
107        PS       pf     XENIX   prtr_on
108        PU       kP     XENIX   key_ppage
109        RT       @8     XENIX   kent
110        UP       ku     XENIX   kcuu1
111        KA       k;     Tek     key_f10
112        KB       F1     Tek     key_f11
113        KC       F2     Tek     key_f12
114        KD       F3     Tek     key_f13
115
116        KE       F4     Tek     key_f14
117        KF       F5     Tek     key_f15
118        BC       Sb     Tek     set_background
119        FC       Sf     Tek     set_foreground
120        HS       mh     Iris    enter_dim_mode
121
122        XENIX  termcap  also  used  to have a set of extension capabilities for
123        forms drawing, designed to take  advantage  of  the  IBM  PC  high-half
124        graphics.  They were as follows:
125
126        <STRONG>Cap</STRONG>          <STRONG>Graphic</STRONG>
127        -----------------------------
128        G2    upper left
129        G3    lower left
130        G1    upper right
131        G4    lower right
132        GR    pointing right
133        GL    pointing left
134        GU    pointing up
135        GD    pointing down
136        GH    horizontal line
137        GV    vertical line
138        GC    intersection
139        G6    upper left
140        G7    lower left
141        G5    upper right
142        G8    lower right
143        Gr    tee pointing right
144        Gr    tee pointing left
145        Gu    tee pointing up
146        Gd    tee pointing down
147        Gh    horizontal line
148        Gv    vertical line
149        Gc    intersection
150        GG    acs magic cookie count
151
152        If   the   single-line  capabilities  occur  in  an  entry,  they  will
153        automatically  be  composed  into  an  <STRONG>acsc</STRONG>  string.   The  double-line
154        capabilities and <STRONG>GG</STRONG> are discarded with a warning message.
155
156        IBM's  AIX  has  a  terminfo  facility descended from SVr1 terminfo but
157        incompatible with the SVr4 format.  The following  AIX  extensions  are
158        automatically translated:
159
160         <STRONG>IBM</STRONG>    <STRONG>XSI</STRONG>
161        -------------
162        ksel    kslt
163        kbtab   kcbt
164        font0   s0ds
165        font1   s1ds
166        font2   s2ds
167        font3   s3ds
168
169        Additionally,  the AIX <EM>box1</EM> capability will be automatically translated
170        to an <STRONG>acsc</STRONG> string.
171
172        Hewlett-Packard's terminfo library supports  two  nonstandard  terminfo
173        capabilities  <STRONG>meml</STRONG>  (memory lock) and <STRONG>memu</STRONG> (memory unlock).  These will
174        be discarded with a warning message.
175
176
177 </PRE><H2><a name="h2-NOTES">NOTES</a></H2><PRE>
178        The verbose option is not identical to SVr4's.  Under SVr4, instead  of
179        following the <STRONG>-v</STRONG> with a trace level n, you repeat it n times.
180
181
182 </PRE><H2><a name="h2-PORTABILITY">PORTABILITY</a></H2><PRE>
183        X/Open  Curses,  Issue  7  (2009) describes <STRONG>tic</STRONG> briefly, but omits this
184        program.  SVr4 systems provide <STRONG>captoinfo</STRONG> as a separate application from
185        <STRONG>tic</STRONG>.
186
187        NetBSD does not provide this application.
188
189
190 </PRE><H2><a name="h2-SEE-ALSO">SEE ALSO</a></H2><PRE>
191        <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>
192
193        This describes <STRONG>ncurses</STRONG> version 6.4 (patch 20230917).
194
195
196 </PRE><H2><a name="h2-AUTHOR">AUTHOR</a></H2><PRE>
197        Eric S. Raymond &lt;esr@snark.thyrsus.com&gt; and
198        Thomas E. Dickey &lt;dickey@invisible-island.net&gt;
199
200
201
202 ncurses 6.4                       2023-09-16                     <STRONG><A HREF="captoinfo.1m.html">captoinfo(1m)</A></STRONG>
203 </PRE>
204 <div class="nav">
205 <ul>
206 <li><a href="#h2-NAME">NAME</a></li>
207 <li><a href="#h2-SYNOPSIS">SYNOPSIS</a></li>
208 <li><a href="#h2-DESCRIPTION">DESCRIPTION</a></li>
209 <li><a href="#h2-FILES">FILES</a></li>
210 <li><a href="#h2-TRANSLATIONS-FROM-NONSTANDARD-CAPABILITIES">TRANSLATIONS FROM NONSTANDARD CAPABILITIES</a></li>
211 <li><a href="#h2-NOTES">NOTES</a></li>
212 <li><a href="#h2-PORTABILITY">PORTABILITY</a></li>
213 <li><a href="#h2-SEE-ALSO">SEE ALSO</a></li>
214 <li><a href="#h2-AUTHOR">AUTHOR</a></li>
215 </ul>
216 </div>
217 </BODY>
218 </HTML>