]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[console] Avoid overlap between special keys and Unicode characters
authorMichael Brown <mcb30@ipxe.org>
Tue, 4 Jul 2023 13:31:07 +0000 (14:31 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 4 Jul 2023 13:33:43 +0000 (14:33 +0100)
commit3ef4f7e2ef4a22ea1e2eccc72957d7bf3fe2f945
tree9ae790d320e9410b4dfa58a57cf3b51e418b0de6
parentcc07ed7c7ede8dfc79643ccabb32285c74d6bff5
[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