]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Avoid overlap between special keys and Unicode characters utf8
authorMichael Brown <mcb30@ipxe.org>
Tue, 13 Jun 2023 18:43:50 +0000 (19:43 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 13 Jun 2023 18:43:50 +0000 (19:43 +0100)
commit6039deb163975771ca53d3dbff0677904e898325
tree06e05c31da39b413b8232e64872718e1f95f119b
parent24eecdb7e29007d9641b0d55b4ba5208ee77c76d
[console] Avoid overlap between special keys and Unicode characters

The special key range (from KEY_MIN upwards) currently overlaps with
the valid range for Unicode characters, and therefore prohibits the
use of Unicode key values outside the ASCII range.

Create space for Unicode key values by moving the special keys to the
range immediately above the maximum valid Unicode character.  This
allows the existing encoding of special keys as an efficiently packed
representation of the equivalent ANSI escape sequence to be maintained
almost as-is.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/interface/pcbios/bios_console.c
src/drivers/usb/usbkbd.c
src/include/ipxe/keys.h