tic - the terminfo entry-description compiler
tic [-cCINpru] [-v[n]] file
The command tic(1) translates a terminfo file from source format into compiled format. The compiled format is necessary for use with the library routines in ncurses(3).
The results are normally placed in the system terminfo directory TERMINFO. There are two ways to change this behavior. First, you can override the system default by setting the variable TERMINFO in your shell environment to a valid (existing) directory name. Second, if tic(1) cannot get access to TERMINFO or your TERMINFO directory, it looks for the directory $HOME/.terminfo; if that directory exists, the entry is placed there.
Libraries that read terminfo entries are expected to check for a TERMINFO directory first, look at $HOME/.terminfo if TERMINFO is not set, and finally look in TERMINFO.
The tic(1) utility takes the following options:
The debug flag levels are as follows:
The file contains one or more terminfo terminal descriptions in source format. Each description in the file describes the capabilities of a particular terminal.
All but one of the capabilities recognized by tic(1) are documented in terminfo(1). The use capability is documented here.
When a terminal entry being compiled contains a field of the form
tic(1) reads in the binary from TERMINFO to complete the entry. (Entries created from file will be used first. If the environment variable TERMINFO is set, that directory is searched instead of TERMINFO.) The tic(1) utility makes the current entry a duplicate of the capabilities for entry_name except for any capabilities explicitly defined for the current entry.
When an entry, such as entry_name_1, contains a use=entry_name_2 field, any cancelled capabilities in entry_name_2 must also appear in entry_name_1 before use= for these capabilities to be canceled in entry_name_1
If the environment variable TERMINFO is set, the compiled results are placed there instead of TERMINFO.
Total compiled entries cannot exceed 4096 bytes. The name field cannot exceed 128 bytes. Terminal names exceeding 14 characters will be truncated to 14 characters and a warning message will be printed.
There is some evidence that historic tic(1) implementations treated description fields that contained no white space as additional aliases or short names. This tic(1) does not do that, but it warns when description fields might be treated that way, and checks them for dangerous characters.
Unlike the stock SVr4 tic(1) command, this implementation can actually compile termcap sources. In fact, entries in terminfo and termcap syntax can be mixed in a single source file. See terminfo(1) for the list of termcap names taken to be equivalent to terminfo names.
The SVr4 manual pages are not clear on the resolution rules for use capabilities. This implementation of tic(1) will find use targets anywhere in the source file, or anywhere in the file tree routed at TERMINFO (if TERMINFO is defined), or in the user's $HOME/.terminfo directory (if it exists), or (finally) anywhere in the system's file tree of compiled entries.
The error messages from this tic(1) have the same format as GNU C error messages, and can be parsed by GNU Emacs's compile facility.
The tic(1) utility makes use of the following files: