Terminfo compiler (UNIX)
tic [-1CGILNTUVacfgrstx] [-e names] [-o dir] [-R subset]
[-v[n]] [-w[n]] file
- Format the translation output as one capability per line.
- Retain commented out capabilities.
- Translate entries to termcap source form.
- Perform only a syntax check of the input file. No output file is produced.
- Translate/compile only entries named by the given comma-separated list.
- Format complex strings for readability.
- Translate entries to terminfo source form.
- Translate entries to full terminfo source form.
- Disable smart defaults for source translation.
- Set the output directory for writing compiled entries.
- Restrict translation to given terminfo or termcap version.
- Force resolution of all use entries in source translation.
- Print summary statistics.
- Remove size restrictions on compiled description.
- Set the verbosity level.
- Set the format width for translation output.
- The pathname of a file that contains one or more terminal descriptions in terminfo source format.
Each description in the file describes a particular terminal. When a
use=entry_name field is
encountered within a terminal description, tic reads the
previously compiled description from the /usr/lib/terminfo
directory to finish the entry. This allows terminal descriptions that
are only slightly different from one previously defined to be expressed
as an extension to that previous description. If the environment variable
TERMINFO is set, the directory named is used
instead of the /usr/lib/terminfo directory.
The tic utility translates a terminfo file from the source format
into the compiled format, ready to use by applications running on the terminal
type named in the terminfo source file.
The compiled terminfo capability files are stored in
single-character directories, under the /usr/lib/terminfo
directory. For example, the VT100 terminfo file is stored in
You can use the
utility to convert a binary, compiled terminfo file back into a source format
that you can modify, and then recompile it with tic.
Some error messages produced by tic indicate the line of
the source file in error and the terminal name being processed at that point.
- When defined, the compiled
output from tic is placed under the directory named
instead of in the /usr/lib/terminfo directory.
- The input file was compiled successfully.
- An error occurred.
The total size of a compiled terminfo description cannot exceed 4096 bytes.
The name field cannot exceed 128 bytes.
Terminal names longer than 14 characters are truncated to 14 characters.
Strang, John, Linda Mui, and Tim O'Reilly. 1988.
termcap & terminfo. Sebastopol, CA:
O'Reilly and Associates. ISBN 0937175226.