xref: /minix3/usr.bin/infocmp/infocmp.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\"	$NetBSD: infocmp.1,v 1.7 2014/03/18 18:20:45 riastradh Exp $
25139afeeSAntoine Leca.\"
35139afeeSAntoine Leca.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
45139afeeSAntoine Leca.\" All rights reserved.
55139afeeSAntoine Leca.\"
65139afeeSAntoine Leca.\" This code is derived from software contributed to The NetBSD Foundation
75139afeeSAntoine Leca.\" by Roy Marples.
85139afeeSAntoine Leca.\"
95139afeeSAntoine Leca.\" Redistribution and use in source and binary forms, with or without
105139afeeSAntoine Leca.\" modification, are permitted provided that the following conditions
115139afeeSAntoine Leca.\" are met:
125139afeeSAntoine Leca.\" 1. Redistributions of source code must retain the above copyright
135139afeeSAntoine Leca.\"    notice, this list of conditions and the following disclaimer.
145139afeeSAntoine Leca.\" 2. Redistributions in binary form must reproduce the above copyright
155139afeeSAntoine Leca.\"    notice, this list of conditions and the following disclaimer in the
165139afeeSAntoine Leca.\"    documentation and/or other materials provided with the distribution.
175139afeeSAntoine Leca.\"
185139afeeSAntoine Leca.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
195139afeeSAntoine Leca.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
205139afeeSAntoine Leca.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
215139afeeSAntoine Leca.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
225139afeeSAntoine Leca.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
235139afeeSAntoine Leca.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
245139afeeSAntoine Leca.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
255139afeeSAntoine Leca.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
265139afeeSAntoine Leca.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
275139afeeSAntoine Leca.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
285139afeeSAntoine Leca.\" POSSIBILITY OF SUCH DAMAGE.
295139afeeSAntoine Leca.\"
305139afeeSAntoine Leca.Dd February 5, 2010
315139afeeSAntoine Leca.Dt INFOCMP 1
325139afeeSAntoine Leca.Os
335139afeeSAntoine Leca.Sh NAME
345139afeeSAntoine Leca.Nm infocmp
355139afeeSAntoine Leca.Nd compare or print compiled terminfo descriptions
365139afeeSAntoine Leca.Sh SYNOPSIS
375139afeeSAntoine Leca.Nm infocmp
385139afeeSAntoine Leca.Op Fl 1acnqux
395139afeeSAntoine Leca.Op Fl A Ar database
405139afeeSAntoine Leca.Op Fl B Ar database
415139afeeSAntoine Leca.Op Fl w Ar cols
425139afeeSAntoine Leca.Op Ar term ...
435139afeeSAntoine Leca.Sh DESCRIPTION
445139afeeSAntoine LecaThe
455139afeeSAntoine Leca.Nm
465139afeeSAntoine Lecareconstructs the first available
475139afeeSAntoine Leca.Xr terminfo 5
485139afeeSAntoine Lecadefinition found for
495139afeeSAntoine Leca.Ar term
505139afeeSAntoine Lecaand prints the result in a
515139afeeSAntoine Leca.Xr terminfo 5
525139afeeSAntoine Lecaformat.
535139afeeSAntoine LecaCapability types are grouped together and new types start new lines,
545139afeeSAntoine Lecafirst flags, then numbers, then strings.
555139afeeSAntoine LecaCapabilities are sorted by their name.
565139afeeSAntoine LecaIf a second
575139afeeSAntoine Leca.Ar term
585139afeeSAntoine Lecais given then the capabilities are compared against each other.
595139afeeSAntoine Leca.Pp
605139afeeSAntoine LecaThe following options are available:
615139afeeSAntoine Leca.Bl -tag -width Ev
625139afeeSAntoine Leca.It Fl 1
635139afeeSAntoine LecaPrint one capability per line.
645139afeeSAntoine Leca.It Fl A Ar database
655139afeeSAntoine LecaUse this database to load the first terminal definition.
665139afeeSAntoine Leca.It Fl B Ar database
675139afeeSAntoine LecaUse this database to load subsequent terminal definitions.
685139afeeSAntoine Leca.It Fl a
695139afeeSAntoine LecaInclude commented out capabilities.
705139afeeSAntoine LecaThis only works if the database was compiled with the
715139afeeSAntoine Leca.Fl a
725139afeeSAntoine Lecaflag passed to
735139afeeSAntoine Leca.Xr tic 1 .
745139afeeSAntoine LecaThis also sets the
755139afeeSAntoine Leca.Fl x
765139afeeSAntoine Lecaflag as
775139afeeSAntoine Leca.Nm
785139afeeSAntoine Lecaretains commented out capabilities as non standard.
795139afeeSAntoine Leca.It Fl c
805139afeeSAntoine LecaPrint capabilities common to each definition.
815139afeeSAntoine Leca.It Fl n
825139afeeSAntoine LecaPrint capabilities that do not exist in either definition.
835139afeeSAntoine Leca.It Fl q
845139afeeSAntoine LecaMake the comparison listing shorter by omitting subheadings and using
855139afeeSAntoine Leca- for absent capabilities, @ for canceled capabilities rather than
865139afeeSAntoine Leca.Dv NULL .
875139afeeSAntoine Leca.It Fl u
885139afeeSAntoine LecaBuild a new terminal description for the first terminal description,
895139afeeSAntoine Lecausing subsequent terminal descriptions.
905139afeeSAntoine LecaThis also sets the
915139afeeSAntoine Leca.Fl a
925139afeeSAntoine Lecaflag.
935139afeeSAntoine Leca.It Fl w Ar cols
945139afeeSAntoine LecaLimit the width to
955139afeeSAntoine Leca.Ar cols .
965139afeeSAntoine Leca.It Fl x
975139afeeSAntoine LecaInclude non-standard capabilities.
985139afeeSAntoine LecaMore
995139afeeSAntoine Leca.Fl x
1005139afeeSAntoine Lecaonly handles non-standard capabilities.
1015139afeeSAntoine LecaThis only works if the database was compiled with the
1025139afeeSAntoine Leca.Fl x
1035139afeeSAntoine Lecaflag passed to
1045139afeeSAntoine Leca.Xr tic 1 .
1055139afeeSAntoine Leca.El
1065139afeeSAntoine Leca.Sh ENVIRONMENT
1075139afeeSAntoine Leca.Bl -tag -width Ev
1085139afeeSAntoine Leca.It Ev COLUMNS
1095139afeeSAntoine LecaOverride columns returned by the output terminal.
1105139afeeSAntoine Leca.Fl w
1115139afeeSAntoine Leca.Ar cols
1125139afeeSAntoine Lecasupersedes this.
1135139afeeSAntoine Leca.It Ev TERM
1145139afeeSAntoine Leca.Nm
1155139afeeSAntoine Lecauses the contents of the
1165139afeeSAntoine Leca.Ev TERM
1175139afeeSAntoine Lecaenvironment variable if no terminal name is given on the command line.
1185139afeeSAntoine Leca.El
1195139afeeSAntoine Leca.Sh EXIT STATUS
1205139afeeSAntoine Leca.Ex -std infocmp
1215139afeeSAntoine Leca.Sh SEE ALSO
1225139afeeSAntoine Leca.Xr tic 1 ,
1235139afeeSAntoine Leca.Xr terminfo 5
1245139afeeSAntoine Leca.Sh STANDARDS
1255139afeeSAntoine LecaThe
1265139afeeSAntoine Leca.Nm
1275139afeeSAntoine Lecautility outputs information that conforms to the
1285139afeeSAntoine Leca.St -xcurses4.2
1295139afeeSAntoine Lecastandard.
1305139afeeSAntoine Leca.Sh AUTHORS
13184d9c625SLionel Sambuc.An Roy Marples Aq Mt roy@NetBSD.org
132