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
Description: PGP signature
