Introduction
A compiled terminfo entry describes what one kind of terminal can do. tic compiles it from a
text description and setupterm in the curses library reads it. Files have no extension and are
named after the terminal, in a terminfo directory with one subdirectory per first letter; ncurses
can use a hashed database instead.
Structure
A binary file: a header of six short integers (magic number, octal 0432, or
01036 for the extended number format, then section sizes), the terminal names, one byte per
Boolean capability, the numbers, the string offsets and the string table. Short integers are little-endian.
ncurses can append an extended section with further capabilities.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the order of the capabilities and the extended format are set out in the term(5) manual page.
- Viewer: the site has no viewer for this format.
Links
Software
- ncurses – its tic compiler writes the entries and its library reads them
Reference
- term(5) – format of compiled term files