I've ported all of my terminal emulator code so that it writes the output window using mvadd_wch(). Everything works fine including cchar_t types created by NCURSES_WACS(x). The problem I'm running into occurs when I use setcchar() to construct a cchar_t. As long as the value I stuff into wch[0] is basically low ascii (or ACS), it displays just fine. Whenever the value is actually utf8 encoded, I typically see a glyph in the window that looks like a question mark inside a solid circle. Skipping over lots of irrelevant stuff, my debug code is basically:
wchar_t wch[] = { 0xE29480, 0x0000 };
setcchar(&my_cchar, wch, 0, 0, NULL);
mvadd_wch(window, y, x, &my_cchar);
Now that's above is the debug code. If I don't hard-code what's in wch and let the CSI interpreter do it's thing, what I see is a bunch of q's, x's, w's, etc... that you would normally expect to see in ACS mode when it's not being properly handled.
--
Bryan
<><