Re: terminfo entries over 4096 bytes and non-default build configurations

Sven Joachim <[email protected]> Mon, 20 Jul 2026 18:17:41 +0200
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
On 2026-07-20 18:05 +0200, Sven Joachim wrote:

> 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.

Small correction: it is initscr() which prints this message and exits
the program after newterm() has returned NULL.

Cheers,
       Sven