1994-10-09 17:40:30 +00:00
|
|
|
.\" @(#) mytinfo tconv.1 3.2 92/02/01 public domain, By Ross Ridge
|
1999-08-28 01:08:13 +00:00
|
|
|
.\" $FreeBSD$
|
1996-10-05 22:27:30 +00:00
|
|
|
.\"
|
1997-08-13 06:58:45 +00:00
|
|
|
.Dd February 1, 1992
|
|
|
|
.Dt TCONV 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
1999-06-24 06:22:24 +00:00
|
|
|
.Nm tconv ,
|
|
|
|
.Nm tic ,
|
|
|
|
.Nm captoinfo
|
1997-08-13 06:58:45 +00:00
|
|
|
.Nd convert between termcap, terminfo source and terminfo binary
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 19:21:22 +00:00
|
|
|
.Nm
|
1997-08-13 06:58:45 +00:00
|
|
|
.Op Fl b
|
|
|
|
.Op Fl c Op Fl OUGd
|
|
|
|
.Op Fl i
|
|
|
|
.Op Fl B Op Fl D Ar dir
|
|
|
|
.Op Fl I
|
|
|
|
.Op Fl k
|
|
|
|
.Op Fl V
|
|
|
|
.Op Fl t Ar term
|
|
|
|
.Op Ar file
|
|
|
|
.Nm tic
|
|
|
|
.Op Ar file
|
|
|
|
.Nm captoinfo
|
|
|
|
.Op Fl t Ar term
|
|
|
|
.Op Fl OUGdk
|
|
|
|
.Op Ar file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm Tconv
|
1994-10-09 17:40:30 +00:00
|
|
|
converts between the three terminal descriptions,
|
|
|
|
termcap, terminfo source, and terminfo binary,
|
|
|
|
that the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Em tinfo
|
1994-10-09 17:40:30 +00:00
|
|
|
library uses.
|
|
|
|
It performs the same functions of
|
1997-08-13 06:58:45 +00:00
|
|
|
.Xr captoinfo 1
|
1994-10-09 17:40:30 +00:00
|
|
|
and
|
1997-08-13 06:58:45 +00:00
|
|
|
.Xr tic 1
|
1994-10-09 17:40:30 +00:00
|
|
|
of System V.
|
|
|
|
It also can be used to generate a terminfo source listing from a terminfo
|
|
|
|
binary, one of the functions of System V's
|
1997-08-13 06:58:45 +00:00
|
|
|
.Xr infocmp 1 .
|
|
|
|
.Pp
|
|
|
|
Translation options:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl c
|
|
|
|
Convert from termcap.
|
|
|
|
.It Fl i
|
|
|
|
Convert from terminfo source.
|
|
|
|
.It Fl b
|
|
|
|
Convert from terminfo binary.
|
|
|
|
.It Fl B
|
|
|
|
Convert to terminfo binary.
|
|
|
|
.It Fl I
|
|
|
|
Convert to terminfo source.
|
|
|
|
.El
|
|
|
|
.Pp
|
1994-10-09 17:40:30 +00:00
|
|
|
If a file is specified, one of
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl c
|
1994-10-09 17:40:30 +00:00
|
|
|
or
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl i
|
1994-10-09 17:40:30 +00:00
|
|
|
must specified and the whole file while be translated.
|
|
|
|
If no file is specified then the input options will only restrict looking
|
|
|
|
for the terminal to be translated in places likely have descriptions
|
|
|
|
of the desired type
|
|
|
|
(ie. with the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl c
|
1994-10-09 17:40:30 +00:00
|
|
|
option in the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Ev TERMCAP
|
1994-10-09 17:40:30 +00:00
|
|
|
environment variable, and in
|
1997-08-13 06:58:45 +00:00
|
|
|
.Pa /usr/share/misc/termcap ,
|
1994-10-09 17:40:30 +00:00
|
|
|
with the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl i
|
1994-10-09 17:40:30 +00:00
|
|
|
option in the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Ev TERMINFO
|
1994-10-09 17:40:30 +00:00
|
|
|
environment variable, and in
|
2001-02-01 16:38:02 +00:00
|
|
|
.Pa /usr/lib/terminfo ) ,
|
1994-10-09 17:40:30 +00:00
|
|
|
otherwise
|
1997-08-13 06:58:45 +00:00
|
|
|
.Nm
|
1994-10-09 17:40:30 +00:00
|
|
|
will look in all available databases.
|
|
|
|
If neither
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl I
|
1994-10-09 17:40:30 +00:00
|
|
|
or
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl B
|
1994-10-09 17:40:30 +00:00
|
|
|
are given the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl I
|
1994-10-09 17:40:30 +00:00
|
|
|
option will be assumed.
|
|
|
|
If the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl B
|
1996-10-05 22:27:30 +00:00
|
|
|
option is used, the compiled output will be put in the
|
1994-10-09 17:40:30 +00:00
|
|
|
terminfo database, otherwise standard output is used.
|
1997-08-13 06:58:45 +00:00
|
|
|
.Pp
|
1994-10-09 17:40:30 +00:00
|
|
|
You cannot translate from terminfo binary to terminfo binary.
|
|
|
|
Translating from terminfo source to terminfo source is possible,
|
|
|
|
but not of much use in most cases, as
|
1997-08-13 06:58:45 +00:00
|
|
|
.Em use=
|
1994-10-09 17:40:30 +00:00
|
|
|
fields will be followed and incorporated into the output terminal
|
|
|
|
description.
|
1997-08-13 06:58:45 +00:00
|
|
|
.Pp
|
|
|
|
.Nm Tconv
|
1994-10-09 17:40:30 +00:00
|
|
|
should be able translate all standard termcap parameterized strings
|
|
|
|
terminfo format, but complex strings using GNU's %a code may be
|
|
|
|
too hard to translate.
|
|
|
|
If
|
1997-08-13 06:58:45 +00:00
|
|
|
.Nm
|
1994-10-09 17:40:30 +00:00
|
|
|
thinks a termcap string is already in terminfo format (if a %p
|
|
|
|
code appears in the string), it won't try to translate it.
|
|
|
|
String capabilities that don't take parameters won't be translated.
|
1997-08-13 06:58:45 +00:00
|
|
|
.Pp
|
|
|
|
Termcap options: the following options are available when translating termcap
|
|
|
|
entries (
|
|
|
|
.Fl c
|
|
|
|
option is used).
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl d
|
|
|
|
Don't supply any defaults for missing capabilities.
|
|
|
|
.It Fl O
|
|
|
|
Include obsolete termcap capabilities.
|
|
|
|
.It Fl G
|
|
|
|
Include GNU capabilities.
|
|
|
|
.It Fl U
|
|
|
|
Include UW capabilities.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Other options:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl k
|
|
|
|
Keep comments when translating a file.
|
|
|
|
.It Fl V
|
|
|
|
Print version information and exit.
|
|
|
|
.It Fl D Ar dir
|
|
|
|
Directory to put terminfo binaries in.
|
|
|
|
.It Fl t Ar term
|
|
|
|
Terminal name to translate.
|
|
|
|
.El
|
|
|
|
.Pp
|
1994-10-09 17:40:30 +00:00
|
|
|
If no terminal specified with the
|
1997-08-13 06:58:45 +00:00
|
|
|
.Fl t
|
1994-10-09 17:40:30 +00:00
|
|
|
option, then the terminal name to to translate will be taken from the
|
|
|
|
environment variable
|
1997-08-13 06:58:45 +00:00
|
|
|
.Ev TERM .
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /usr/lib/terminfo/terminfo.src -compact
|
|
|
|
.It Pa /usr/lib/terminfo
|
1994-10-09 17:40:30 +00:00
|
|
|
The default location to get and put terminfo binaries.
|
1997-08-13 06:58:45 +00:00
|
|
|
.It Pa /usr/lib/terminfo/terminfo.src
|
1994-10-09 17:40:30 +00:00
|
|
|
The default filename of the terminfo source file.
|
1997-08-13 06:58:45 +00:00
|
|
|
.It Pa /etc/termcap
|
1994-10-09 17:40:30 +00:00
|
|
|
The default filename of the termcap database.
|
1997-08-13 06:58:45 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr curses 3 ,
|
|
|
|
.Xr termcap 3 ,
|
|
|
|
.Xr term 5 ,
|
|
|
|
.Xr termcap 5 ,
|
2000-11-15 17:27:54 +00:00
|
|
|
.Xr terminfo 5
|
1997-08-13 06:58:45 +00:00
|
|
|
.Sh DIAGNOSTICS
|
1994-10-09 17:40:30 +00:00
|
|
|
The line number of a warning message when translating a file
|
|
|
|
may refer to the last line of an entry instead of the line in the entry
|
|
|
|
that generated the warning.
|
1997-08-13 06:58:45 +00:00
|
|
|
.Sh BUGS
|
1994-10-09 17:40:30 +00:00
|
|
|
More warning messages could be generated.
|
1997-08-13 06:58:45 +00:00
|
|
|
.Nm Tconv
|
1996-01-30 13:52:50 +00:00
|
|
|
can't translate to termcap. Binaries generated will have canceled
|
|
|
|
capabilities marked as canceled, which is incompatible with
|
1994-10-09 17:40:30 +00:00
|
|
|
System V Release 2.0 terminfo.
|