Bill-Gray/PDCursesMod

Input is not working for codepoint entries above 0xFFFF

okibcn opened this issue · 2 comments

When using the new Windows 11 tool for inserting special characters such as emojis, PDCursesMod cannot handle the input correctly. It all comes from the fact that Win32 API handles UTF-16 units, and sometimes a wchar_t (Unicode) requires more than one unit from the OS.

I have added a new commit to #273 that solves the issue with an upgraded wgetch() wrapper function.

Fixed with 3ec63c9.