1 .\" @(#) mytinfo tconv.1 3.2 92/02/01 public domain, By Ross Ridge
11 .Nd convert between termcap, terminfo source and terminfo binary
17 .Op Fl B Op Fl D Ar dir
31 converts between the three terminal descriptions,
32 termcap, terminfo source, and terminfo binary,
36 It performs the same functions of
41 It also can be used to generate a terminfo source listing from a terminfo
42 binary, one of the functions of System V's
46 .Bl -tag -width indent
50 Convert from terminfo source.
52 Convert from terminfo binary.
54 Convert to terminfo binary.
56 Convert to terminfo source.
59 If a file is specified, one of
63 must specified and the whole file while be translated.
64 If no file is specified then the input options will only restrict looking
65 for the terminal to be translated in places likely have descriptions
71 environment variable, and in
72 .Pa /usr/share/misc/termcap ,
77 environment variable, and in
78 .Pa /usr/lib/terminfo Ns ),
81 will look in all available databases.
88 option will be assumed.
91 option is used, the compiled output will be put in the
92 terminfo database, otherwise standard output is used.
94 You cannot translate from terminfo binary to terminfo binary.
95 Translating from terminfo source to terminfo source is possible,
96 but not of much use in most cases, as
98 fields will be followed and incorporated into the output terminal
102 should be able translate all standard termcap parameterized strings
103 terminfo format, but complex strings using GNU's %a code may be
104 too hard to translate.
107 thinks a termcap string is already in terminfo format (if a %p
108 code appears in the string), it won't try to translate it.
109 String capabilities that don't take parameters won't be translated.
111 Termcap options: the following options are available when translating termcap
115 .Bl -tag -width indent
117 Don't supply any defaults for missing capabilities.
119 Include obsolete termcap capabilities.
121 Include GNU capabilities.
123 Include UW capabilities.
127 .Bl -tag -width indent
129 Keep comments when translating a file.
131 Print version information and exit.
133 Directory to put terminfo binaries in.
135 Terminal name to translate.
138 If no terminal specified with the
140 option, then the terminal name to to translate will be taken from the
144 .Bl -tag -width /usr/lib/terminfo/terminfo.src -compact
145 .It Pa /usr/lib/terminfo
146 The default location to get and put terminfo binaries.
147 .It Pa /usr/lib/terminfo/terminfo.src
148 The default filename of the terminfo source file.
150 The default filename of the termcap database.
159 The line number of a warning message when translating a file
160 may refer to the last line of an entry instead of the line in the entry
161 that generated the warning.
163 More warning messages could be generated.
165 can't translate to termcap. Binaries generated will have canceled
166 capabilities marked as canceled, which is incompatible with
167 System V Release 2.0 terminfo.