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