Re: Issue with Slackware build of ncurses and tvi910 terminfo entry

Thomas Dickey <[email protected]> Sat, 16 May 2026 12:49:17 -0400
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
On Fri, May 15, 2026 at 03:59:32AM -0400, Thomas Dickey wrote:
> On Fri, May 15, 2026 at 12:13:25AM -0400, Frank Palazzolo wrote:
> > Hello,
> > 
> > I discovered NCURSES_NO_MAGIC_COOKIE, which lets me workaround the issue
> > without having to recompile the library!
> > 
> > Given that, I decided to write some python to determine which other TERM
> > types might be affected.  I tested the sample code with all the terminal
> > types in an 80x24 window on Slackware64-15.0
> > 
> > There are 95 terminal types which give a much larger output when
> > running with magic cookie support turned on, and they all have a xmc entry
> > in terminfo.  (See table 1 for the numbers)

The basic reason for the larger output is that when initializing for
magic cookies, I disabled the clear-display capability (to limit the
types of optimization available).

I can improve this by deferring the optimization-limitation until
it's actually needed: when a cell is written using one of the video
attributes.  That would make your testcase work better, though as
I mentioned, the optimization with magic cookies was never satisfactory.
 
-- 
Thomas E. Dickey <[email protected]>
https://invisible-island.net
signature.asc (application/pgp-signature, 659 B)
-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmoIoAoACgkQzCr0RyFn
vgNtKAv6AlqI/g3FFDT7IJgtHt9MheSs16DNxPMHi4Lni2NkZHNn2XLh36Eqn2L8
MsS5wSbUNYbBR3yJ8IJ7FJS4onbbFHqccOg6JT+vf2CC9r46zt5wRZqGhPU7Xamz
FUqy38rQQgSeJcF/V+FF5a33bKPFNlmRlmeS+Z9G3q/qlieLEtFZPBXKTy0eFH0N
fwB2PYur1QzOmrVf1fQX8BLr0k2i9C3fQiA+fZt0KQmp99YiO7WcDZdBhHemNxBF
23HgdVcEjmAi1G4eZIiTZHGN5NobsRyw/ibAdoFVZULFU5b35jZ6wcnqzPJEjCH1
DiCOztvEzA5BTDpLSsawXOe5FJXrogn/fSvnfMZijvax0Bt1ml8qbkurj9jjwHW3
YriSLNeTKuuXwPiDA5RGqnNOGH5wyQakJkTDQENZsR2pD4XhdB6p4eExTR2CBsdi
EXKKbjE8pyaLkfRRXJuRJ28SccUnmqjFiwqzyVJCpo1n2pgQCqhTcQeOA93+CLaR
BpXb9VOA
=WqQ0
-----END PGP SIGNATURE-----