1captoinfo(1M)                                                    captoinfo(1M)
2
3
4

NAME

6       captoinfo - convert a termcap description into a terminfo description
7

SYNOPSIS

9       captoinfo [-vn width]  [-V] [-1] [-w width] file ...
10

DESCRIPTION

12       captoinfo  looks in each given text file for termcap descriptions.  For
13       each one found, an equivalent terminfo description is written to  stan‐
14       dard  output.   Termcap tc capabilities are translated directly to ter‐
15       minfo use capabilities.
16
17       If no file is given, then the environment variable TERMCAP is used  for
18       the  filename  or entry.  If TERMCAP is a full pathname to a file, only
19       the terminal whose name is specified in the environment  variable  TERM
20       is  extracted  from  that file.  If the environment variable TERMCAP is
21       not set, then the file /usr/share/terminfo is read.
22
23       -v   print out tracing information on standard  error  as  the  program
24            runs.
25
26       -V   print  out the version of the program in use on standard error and
27            exit.
28
29       -1   cause the fields to print out  one  to  a  line.   Otherwise,  the
30            fields  will be printed several to a line to a maximum width of 60
31            characters.
32
33       -w   change the output to width characters.
34

FILES

36       /usr/share/terminfo Compiled terminal description database.
37

TRANSLATIONS FROM NONSTANDARD CAPABILITIES

39       Some obsolete nonstandard capabilities will automatically be translated
40       into  standard  (SVr4/XSI  Curses)  terminfo capabilities by captoinfo.
41       Whenever one of these automatic translations is done, the program  will
42       issue an notification to stderr, inviting the user to check that it has
43       not mistakenly translated a completely unknown  and  random  capability
44       and/or syntax error.
45
46       Nonstd   Std    From           Terminfo
47        name    name                 capability
48       ───────────────────────────────────────────────
49       BO       mr     AT&T    enter_reverse_mode
50       CI       vi     AT&T    cursor_invisible
51       CV       ve     AT&T    cursor_normal
52       DS       mh     AT&T    enter_dim_mode
53       EE       me     AT&T    exit_attribute_mode
54       FE       LF     AT&T    label_on
55       FL       LO     AT&T    label_off
56       XS       mk     AT&T    enter_secure_mode
57       EN       @7     XENIX   key_end
58       GE       ae     XENIX   exit_alt_charset_mode
59       GS       as     XENIX   enter_alt_charset_mode
60       HM       kh     XENIX   key_home
61       LD       kL     XENIX   key_dl
62       PD       kN     XENIX   key_npage
63       PN       po     XENIX   prtr_off
64       PS       pf     XENIX   prtr_on
65       PU       kP     XENIX   key_ppage
66
67       RT       @8     XENIX   kent
68       UP       ku     XENIX   kcuu1
69       KA       k;     Tek     key_f10
70       KB       F1     Tek     key_f11
71       KC       F2     Tek     key_f12
72       KD       F3     Tek     key_f13
73       KE       F4     Tek     key_f14
74       KF       F5     Tek     key_f15
75       BC       Sb     Tek     set_background
76       FC       Sf     Tek     set_foreground
77       HS       mh     Iris    enter_dim_mode
78
79       XENIX  termcap  also  used  to have a set of extension capabilities for
80       forms drawing, designed to take  advantage  of  the  IBM  PC  high-half
81       graphics.  They were as follows:
82
83       Cap          Graphic
84       ─────────────────────────────
85       G2    upper left
86       G3    lower left
87       G1    upper right
88       G4    lower right
89       GR    pointing right
90       GL    pointing left
91       GU    pointing up
92       GD    pointing down
93       GH    horizontal line
94       GV    vertical line
95       GC    intersection
96       G6    upper left
97       G7    lower left
98       G5    upper right
99       G8    lower right
100       Gr    tee pointing right
101       Gr    tee pointing left
102       Gu    tee pointing up
103       Gd    tee pointing down
104       Gh    horizontal line
105       Gv    vertical line
106       Gc    intersection
107       GG    acs magic cookie count
108
109       If  the single-line capabilities occur in an entry, they will automati‐
110       cally be composed into an acsc string.   The  double-line  capabilities
111       and GG are discarded with a warning message.
112
113       IBM's  AIX has a terminfo facility descended from SVr1 terminfo but in‐
114       compatible with the SVr4 format.  The following AIX extensions are  au‐
115       tomatically translated:
116
117        IBM    XSI
118       ─────────────
119       ksel    kslt
120       kbtab   kcbt
121       font0   s0ds
122       font1   s1ds
123       font2   s2ds
124       font3   s3ds
125
126       Additionally,  the AIX box1 capability will be automatically translated
127       to an acsc string.
128
129       Hewlett-Packard's terminfo library supports  two  nonstandard  terminfo
130       capabilities  meml  (memory lock) and memu (memory unlock).  These will
131       be discarded with a warning message.
132

NOTES

134       This utility is actually a link to tic(1M), running in  -I  mode.   You
135       can use other tic options such as -f and  -x.
136
137       The  verbose option is not identical to SVr4's.  Under SVr4, instead of
138       following the -v with a trace level n, you repeat it n times.
139

PORTABILITY

141       X/Open Curses, Issue 7 (2009) describes tic  briefly,  but  omits  this
142       program.  SVr4 systems provide captoinfo as a separate application from
143       tic.
144
145       NetBSD does not provide this application.
146

SEE ALSO

148       infocmp(1M), curses(3X), terminfo(5)
149
150       This describes ncurses version 6.3 (patch 20220501).
151

AUTHOR

153       Eric S. Raymond <esr@snark.thyrsus.com> and
154       Thomas E. Dickey <dickey@invisible-island.net>
155
156
157
158                                                                 captoinfo(1M)
Impressum