windows-curses icon indicating copy to clipboard operation
windows-curses copied to clipboard

full-width character

Open dhnam opened this issue 5 years ago • 4 comments

tried

stdscr.addstr(0, 0, "가나다")

result word 가나다 overlapping each other

...And I tested with other full-width character, like full-width English, and same thing happened.

dhnam avatar Sep 14 '19 05:09 dhnam

Looking at the Python module code at

https://github.com/zephyrproject-rtos/windows-curses/blob/e7e7a2b33bffa4629fa8cc52bb61d5fad28f5938/py38/_cursesmodule.c#L666

, it just seems to call through to waddstr()/waddwstr() in PDCurses (should get the wide-character waddwstr() in your case, if things are working properly).

I suspect PDCurses does not support full-width characters. It's one of the features listed for this PDCurses fork.

Maybe @wmcbrine (PDCurses author) or @Bill-Gray (fork author) has some input.

ulfalizer avatar Sep 14 '19 17:09 ulfalizer

Yes, "full-width" characters are something I need to work on.

wmcbrine avatar Sep 14 '19 19:09 wmcbrine

I hope we could still implement this! =)

eyahlin avatar Oct 12 '22 02:10 eyahlin

For PDCursesMod (the aforementioned fork), the WinGUI and VT ports support full-width characters (and combining characters and SMP characters, i.e., just about everything you can do with Unicode except right-to-left; I'm not even sure how that would be expected to work in Curses). I've thoughts about adding fullwidth support for the framebuffer port, which might later get us support on DOSVGA. Haven't tried it on WinCon (Windows console). I think it may be possible on X11? It may just be a matter of getting the right fonts for that platform.

Bill-Gray avatar Oct 12 '22 02:10 Bill-Gray