1 .\" @(#) mytinfo tconv.1 3.2 92/02/01 public domain, By Ross Ridge
2 .\" $FreeBSD: src/usr.bin/tconv/tconv.1,v 1.10.2.6 2002/06/21 15:29:26 charnier Exp $
3 .\" $DragonFly: src/usr.bin/tconv/Attic/tconv.1,v 1.3 2006/02/17 19:39:11 swildner Exp $
12 .Nd convert between termcap, terminfo source and terminfo binary
18 .Op Fl B Op Fl D Ar dir
33 utility converts between the three terminal descriptions,
34 termcap, terminfo source, and terminfo binary,
38 It performs the same functions of
43 It also can be used to generate a terminfo source listing from a terminfo
44 binary, one of the functions of System V's
48 .Bl -tag -width indent
52 Convert from terminfo source.
54 Convert from terminfo binary.
56 Convert to terminfo binary.
58 Convert to terminfo source.
61 If a file is specified, one of
65 must specified and the whole file while be translated.
66 If no file is specified then the input options will only restrict looking
67 for the terminal to be translated in places likely have descriptions
73 environment variable, and in
74 .Pa /usr/share/misc/termcap ,
79 environment variable, and in
80 .Pa /usr/lib/terminfo ) ,
83 will look in all available databases.
90 option will be assumed.
93 option is used, the compiled output will be put in the
94 terminfo database, otherwise standard output is used.
96 You cannot translate from terminfo binary to terminfo binary.
97 Translating from terminfo source to terminfo source is possible,
98 but not of much use in most cases, as
100 fields will be followed and incorporated into the output terminal
105 utility should be able translate all standard termcap parameterized strings
106 terminfo format, but complex strings using GNU's %a code may be
107 too hard to translate.
110 thinks a termcap string is already in terminfo format (if a %p
111 code appears in the string), it won't try to translate it.
112 String capabilities that don't take parameters won't be translated.
114 Termcap options: the following options are available when translating termcap
118 .Bl -tag -width indent
120 Don't supply any defaults for missing capabilities.
122 Include obsolete termcap capabilities.
124 Include GNU capabilities.
126 Include UW capabilities.
130 .Bl -tag -width indent
132 Keep comments when translating a file.
134 Print version information and exit.
136 Directory to put terminfo binaries in.
138 Terminal name to translate.
141 If no terminal specified with the
143 option, then the terminal name to translate will be taken from the
147 .Bl -tag -width /usr/lib/terminfo/terminfo.src -compact
148 .It Pa /usr/lib/terminfo
149 The default location to get and put terminfo binaries.
150 .It Pa /usr/lib/terminfo/terminfo.src
151 The default filename of the terminfo source file.
153 The default filename of the termcap database.
156 The line number of a warning message when translating a file
157 may refer to the last line of an entry instead of the line in the entry
158 that generated the warning.
166 More warning messages could be generated.
169 utility can't translate to termcap. Binaries generated will have canceled
170 capabilities marked as canceled, which is incompatible with
171 System V Release 2.0 terminfo.