summaryrefslogtreecommitdiff
path: root/sys/dev/microcode
diff options
context:
space:
mode:
authorblymn <blymn@NetBSD.org>2022-01-25 03:05:06 +0000
committerblymn <blymn@NetBSD.org>2022-01-25 03:05:06 +0000
commitf89783a26be695e91ef689b8d37cce4d7f7f3d65 (patch)
tree36dd0d79f63c1f6d02d4eb11765676729d704382 /sys/dev/microcode
parent81b20929e08a21230e9872970d7c767a9dbac1a3 (diff)
Correct (hopefully) the handling of wide characters.
* Remove the WCOL family of macros, these were "stealing" the upper bits of a character attribute to store the column width of a character. No warning was given about this in curses.h which meant it was easy to accidentally reuse the bits in use by the WCOL macros (we already did). Add couple of 16bit ints to the character structure iff HAVE_WCHAR is true to hold the display width and wide char related flags (just continuation at the moment) * Convert all instances of WCOL macros to just reference the column width in the char structure so it is not obfuscated. * Fix cursor positioning so placing a cursor in the middle of a wide char actually does just that. * Fix plod so it understands that if the cursor is going to be positioned in the middle of a wide char it cannot just reprint the char to get there. * Fix plodput so it correctly counts the number of output characters for wide characters. * Fix slk routines to properly size the wctomb() buffer.
Diffstat (limited to 'sys/dev/microcode')
0 files changed, 0 insertions, 0 deletions