Op 02-09-2025 om 02:11 schreef Thomas Dickey:
ouch.  If it's unknown, then you don't know the size.
It could be an emoji (2 cells) or some pua stuff (anyone's guess).

Ncurses prints PUA characters without any problem, even though their
wcwidth() is negative.


If ncurses doesn't know the width, it'll get confused when it repaints
the screen.  I don't know how to solve that problem.

When the user indicates they want to see all code points -- also the
unknown ones -- then they accept that things may not be accurately
displayed.  Also, whenever an unknown code point is encountered and
the user wants it to be displayed anyway, maybe disable the movement-
optimizing routines with a call to redrawwin()?


     putenv("ALLOW_UNASSIGNED_CODEPOINTS=yeah");

The name's kind of long, and doesn't begin with "NCURSES_"

It was just an example.  How about "NCURSES_SHOW_ALL"?


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to