293 useradd/del/mod should be ZFS-aware
[illumos-gate.git] / usr / src / man / man1m / captoinfo.1m
blobe49c000a0ec86581bf91d69e4c72155c20be35d0
1 '\" te
2 .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH CAPTOINFO 1M "May 18, 1993"
8 .SH NAME
9 captoinfo \- convert a termcap description into a terminfo description
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fBcaptoinfo\fR [\fB-1\fR] [\fB-v\fR]... [\fB-V\fR] [\fB-w\fR \fIwidth\fR] \fIfilename\fR...
14 .fi
16 .SH DESCRIPTION
17 .sp
18 .LP
19 \fBcaptoinfo\fR looks in \fIfilename\fR for  \fBtermcap\fR descriptions. For
20 each one found, an equivalent  \fBterminfo\fR description is written to
21 standard output, along with any comments found. A description which is
22 expressed as relative to another description (as specified in the \fBtermcap\fR
23 \fBtc = field\fR) is reduced to the minimum superset before being displayed.
24 .sp
25 .LP
26 If no  \fIfilename\fR is given, then the environment variable
27 \fB\fR\fBTERM\fR\fBCAP \fR is used for the filename or entry. If
28 \fB\fR\fBTERM\fR\fBCAP \fR is a full pathname to a file,  only the terminal
29 whose name is specified in the environment variable \fBTERM\fR is extracted
30 from that file. If the environment variable \fB\fR\fBTERM\fR\fBCAP \fR is not
31 set, then the file \fB/usr/share/lib/termcap\fR is read.
32 .SH OPTIONS
33 .sp
34 .ne 2
35 .na
36 \fB\fB\(mi1\fR\fR
37 .ad
38 .RS 12n
39 Display the fields one to a line. Otherwise, the fields are printed several to
40 a line, with a maximum width of 60 characters.
41 .RE
43 .sp
44 .ne 2
45 .na
46 \fB\fB-v\fR\fR
47 .ad
48 .RS 12n
49 Display tracing information on the standard error as the program runs.
50 Specifying additional \fB-v\fR options displays more detailed information.
51 .RE
53 .sp
54 .ne 2
55 .na
56 \fB\fB-V\fR\fR
57 .ad
58 .RS 12n
59 Display the version of the program in use on the standard error and then exit.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fB-w\fR\fI width\fR\fR
66 .ad
67 .RS 12n
68 Change the output to \fIwidth\fR characters.
69 .RE
71 .SH FILES
72 .sp
73 .ne 2
74 .na
75 \fB\fB/usr/share/lib/terminfo/?/*\fR\fR
76 .ad
77 .sp .6
78 .RS 4n
79 compiled terminal description database
80 .RE
82 .sp
83 .ne 2
84 .na
85 \fB\fB/usr/share/lib/termcap\fR\fR
86 .ad
87 .sp .6
88 .RS 4n
90 .RE
92 .SH SEE ALSO
93 .sp
94 .LP
95 \fBinfocmp\fR(1M), \fBcurses\fR(3CURSES), \fBterminfo\fR(4),
96 \fBattributes\fR(5)
97 .SH NOTES
98 .sp
99 .LP
100 \fBcaptoinfo\fR should be used to convert \fBtermcap\fR entries to
101 \fBterminfo\fR entries because the \fBtermcap\fR database may not be supplied
102 in future releases.