terminfo entries over 4096 bytes and non-default build configurations

Sven Joachim <[email protected]> Mon, 20 Jul 2026 18:05:40 +0200
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
When building with --disable-widec or --with-abi-version=5, the size of
terminfo entries is limited to 4096 bytes (MAX_ENTRY_SIZE in
include/tic.h).  Since popular entries like xterm or xterm-256color are
now larger than that limit, problems arise:

- When installing the terminfo database from such a build, these entries
  are missing (tic reports that they are larger than 4096 bytes, so the
  builder might at least notice that they are skipped).

- The libraries cannot open such an entry, for instance newterm() fails
  with a "cannot initialize terminal type" error message.

Note that the second problem does not ensue if libncurses.so.6 and
libncursesw.so.6 share a common libtinfo.so.6 from the wide build, as is
the case in Debian and Fedora.

Can the limit be increased to 32768 in all configurations?  After all,
compatibility with current terminfo entries seems to be more important
than compatibility with SVr2.

Cheers,
       Sven