Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
Copyright 1989 AT&T
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.
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.
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]
captoinfo [-1] [-v]... [-V] [-w width] filename...
captoinfo looks in filename for termcap descriptions. For each one found, an equivalent terminfo description is written to standard output, along with any comments found. A description which is expressed as relative to another description (as specified in the termcap tc = field) is reduced to the minimum superset before being displayed.
If no filename is given, then the environment variable TERMCAP is used for the filename or entry. If TERMCAP is a full pathname to a file, only the terminal whose name is specified in the environment variable TERM is extracted from that file. If the environment variable TERMCAP is not set, then the file /usr/share/lib/termcap is read.
Display the fields one to a line. Otherwise, the fields are printed several to a line, with a maximum width of 60 characters.
Display tracing information on the standard error as the program runs. Specifying additional -v options displays more detailed information.
Display the version of the program in use on the standard error and then exit.
Change the output to width characters.
compiled terminal description database
curses (3CURSES), terminfo (5), attributes (7), infocmp (8)
captoinfo should be used to convert termcap entries to terminfo entries because the termcap database may not be supplied in future releases.