ncursesansi-escapeterminfo

How to specify multiple entries in TERM environment variable?


Reading through http://invisible-island.net/ncurses/terminfo.src.html it sounds as if it should be possible to assign multiple entries (e.g. "ansi+erase" and "ansi+cup") to the TERM environment variable.

  1. Is it possible to specify multiple entries?
  2. How are entries separated (e.g. spaces, commas)?

Solution

  • A terminfo entry is compiled, making an entry in the terminal database. The entries mentioned (ansi+erase and ansi+cup) are convenient building-blocks which can be combined along with miscellaneous capabilities to make a terminfo entry. About ten percent of the entries in the terminal database are building blocks.

    Once compiled, you cannot modify an entry unless you make changes to the source and recompile it. Usually one modifies an entry by

    When modifying an entry, you could reuse the same name, or change the name. Of course, if you reused the same name, your changes would be lost the next time the terminal database was reinstalled (or recompiled).