On Mon, Sep 01, 2025 at 11:35:08AM +0200, Benno Schulenberg wrote:
> 
> Op 31-08-2025 om 20:14 schreef Thomas Dickey:
> > ah...  I've exercised the wctob for quite a while.  In a quick check, none
> > of the machines for which I have build-logs except for FreeBSD 4.9
> > (in a build from 2012) lacked that function.
> > 
> >     NCURSES_EXPORT(int) _nc_to_char(wint_t ch)
> >       ...
> > 
> > Just so I know - what's the platform?
> 
> Linux Mint.  I didn't run into any problems -- I found the issue
> through code inspection, because I'm looking for the place where
> ncurses displays an unassigned codepoint as a space.  (I want to
> modify ncurses locally to let those codepoints pass, so that nano
> can display a file in the same way that emacs and micro-emacs do.)
> 
> I'm currently working through ncurses/base/lib_addch.c, but I
> haven't found the place yet.  If you have a hint for me, that
> would be nice.

I think that if you modify render_char, that would be the simplest.
Something like a check on wcwidth, and mapping the character to a space.

-- 
Thomas E. Dickey <dic...@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature

Reply via email to