sys/kbio.h: support Unicode key codes in vt keymap files

Some keyboard definitions return Unicode characters that cannot be
represented in the 8 bits provided by an u_char.

Extend then width of the keycode entries to 16 bits to allow for all
keycodes currently defined in share/vt/keymaps/*,kbd.

Reported by:	   yuri@aetern.org
MFC after:	   3 days
This commit is contained in:
Stefan Eßer 2023-02-01 17:24:18 +01:00
parent c0a4a7bb94
commit 1e0853ee84

View File

@ -200,7 +200,7 @@ typedef struct okeymap okeymap_t;
struct acc_t {
u_char accchar;
u_char map[NUM_ACCENTCHARS][2];
u_short map[NUM_ACCENTCHARS][2];
};
struct accentmap {