xref: /minix3/usr.bin/tic/tic.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\"	$NetBSD: tic.1,v 1.12 2014/03/18 18:20:45 riastradh Exp $
251e66a47SVivek Prakash.\"
351e66a47SVivek Prakash.\" Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
451e66a47SVivek Prakash.\" All rights reserved.
551e66a47SVivek Prakash.\"
651e66a47SVivek Prakash.\" This code is derived from software contributed to The NetBSD Foundation
751e66a47SVivek Prakash.\" by Roy Marples.
851e66a47SVivek Prakash.\"
951e66a47SVivek Prakash.\" Redistribution and use in source and binary forms, with or without
1051e66a47SVivek Prakash.\" modification, are permitted provided that the following conditions
1151e66a47SVivek Prakash.\" are met:
1251e66a47SVivek Prakash.\" 1. Redistributions of source code must retain the above copyright
1351e66a47SVivek Prakash.\"    notice, this list of conditions and the following disclaimer.
1451e66a47SVivek Prakash.\" 2. Redistributions in binary form must reproduce the above copyright
1551e66a47SVivek Prakash.\"    notice, this list of conditions and the following disclaimer in the
1651e66a47SVivek Prakash.\"    documentation and/or other materials provided with the distribution.
1751e66a47SVivek Prakash.\"
1851e66a47SVivek Prakash.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1951e66a47SVivek Prakash.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
2051e66a47SVivek Prakash.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
2151e66a47SVivek Prakash.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2251e66a47SVivek Prakash.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2351e66a47SVivek Prakash.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2451e66a47SVivek Prakash.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2551e66a47SVivek Prakash.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2651e66a47SVivek Prakash.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2751e66a47SVivek Prakash.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2851e66a47SVivek Prakash.\" POSSIBILITY OF SUCH DAMAGE.
2951e66a47SVivek Prakash.\"
3084d9c625SLionel Sambuc.Dd June 3, 2012
3151e66a47SVivek Prakash.Dt TIC 1
3251e66a47SVivek Prakash.Os
3351e66a47SVivek Prakash.Sh NAME
3451e66a47SVivek Prakash.Nm tic
3551e66a47SVivek Prakash.Nd terminfo compiler
3651e66a47SVivek Prakash.Sh SYNOPSIS
3751e66a47SVivek Prakash.Nm tic
3851e66a47SVivek Prakash.Op Fl acSsx
3951e66a47SVivek Prakash.Op Fl o Ar file
4051e66a47SVivek Prakash.Ar source
4151e66a47SVivek Prakash.Op Ar term1 term2 ...
4251e66a47SVivek Prakash.Sh DESCRIPTION
4351e66a47SVivek PrakashThe
4451e66a47SVivek Prakash.Nm
4551e66a47SVivek Prakashutility compiles
4651e66a47SVivek Prakash.Xr terminfo 5
4751e66a47SVivek Prakashsource into a database for use by other programs.
4884d9c625SLionel SambucThe created database path name is the same as the source but with .cdb appended.
4951e66a47SVivek Prakash.Pp
5051e66a47SVivek PrakashThe following options are available:
5151e66a47SVivek Prakash.Bl -tag -width Fl
5251e66a47SVivek Prakash.It Fl a
5351e66a47SVivek PrakashDo not discard commented out capabilities.
5451e66a47SVivek Prakash.It Fl c
5551e66a47SVivek PrakashOnly check for errors, don't write the final database.
5651e66a47SVivek Prakash.It Fl o Ar file
5751e66a47SVivek PrakashWrite the database to
5884d9c625SLionel Sambuc.Ar file
5951e66a47SVivek Prakashinstead of
6084d9c625SLionel Sambuc.Ar source Ns .cdb .
6151e66a47SVivek Prakash.It Fl S
6251e66a47SVivek PrakashFor
6351e66a47SVivek Prakash.Ar term1 , term2 , ...
6451e66a47SVivek Prakashoutput a C structure containing name, compiled description, and compiled size.
6584d9c625SLionel SambucThis can be used to embed terminal descriptions into a program.
6651e66a47SVivek Prakash.It Fl s
6784d9c625SLionel SambucDisplay the number of terminal descriptions written to the database.
6851e66a47SVivek Prakash.It Fl x
6951e66a47SVivek PrakashInclude non standard capabilities defined in the
7051e66a47SVivek Prakash.Ar source .
7151e66a47SVivek Prakash.El
7251e66a47SVivek Prakash.Ss Extensions To Terminfo
7351e66a47SVivek PrakashWhen
7451e66a47SVivek Prakash.Nm
7551e66a47SVivek Prakashdiscovers a
7651e66a47SVivek Prakash.Sy use Ns = Ns Va term
7751e66a47SVivek Prakashcapability, the terminal description for
7851e66a47SVivek Prakash.Va term
7951e66a47SVivek Prakashis merged in.
8051e66a47SVivek PrakashCapabilities do not overwrite previously disovered ones and capabilities
8151e66a47SVivek Prakashending with @ are marked as absent so the terminal does not inherit the
8251e66a47SVivek Prakashcapability from
8351e66a47SVivek Prakash.Sy use Ns d
8451e66a47SVivek Prakashterminals.
8551e66a47SVivek Prakash.Sh EXIT STATUS
8651e66a47SVivek Prakash.Ex -std tic
8751e66a47SVivek Prakash.Sh EXAMPLES
8851e66a47SVivek PrakashTo maintain your private terminfo definitions, if the system supplied
8951e66a47SVivek Prakashones do not support your terminal:
9051e66a47SVivek Prakash.Bd -literal -offset indent
9151e66a47SVivek Prakash.Ic tic ~/.terminfo
9251e66a47SVivek Prakash.Ed
9351e66a47SVivek Prakash.Sh SEE ALSO
9451e66a47SVivek Prakash.Xr infocmp 1 ,
9551e66a47SVivek Prakash.Xr tput 1 ,
9651e66a47SVivek Prakash.Xr curses 3 ,
9751e66a47SVivek Prakash.Xr terminfo 5
9851e66a47SVivek Prakash.Sh STANDARDS
9951e66a47SVivek PrakashThe
10051e66a47SVivek Prakash.Nm
10151e66a47SVivek Prakashutility works with terminfo files that conform to the
10251e66a47SVivek Prakash.St -xcurses4.2
10351e66a47SVivek Prakashstandard.
10451e66a47SVivek Prakash.Sh AUTHORS
10584d9c625SLionel Sambuc.An Roy Marples Aq Mt roy@NetBSD.org
106