diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-04-11 15:33:48 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-04-11 15:33:48 -0700 |
commit | b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342 (patch) | |
tree | ed71e182ddc14a78b0bac1d0d8470fc77a518a05 /com32/samples | |
parent | ff43174663ef3eabb25d672d874500dc228a9b49 (diff) | |
download | syslinux-b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342.tar.gz syslinux-b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342.tar.xz syslinux-b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342.zip |
keytest: show the human name together with the keycode
Since we now have library support for showing the keycode name, make
keytest print that as well.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'com32/samples')
-rw-r--r-- | com32/samples/keytest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/samples/keytest.c b/com32/samples/keytest.c index b4f8f5b0..a5cdd5c1 100644 --- a/com32/samples/keytest.c +++ b/com32/samples/keytest.c @@ -43,7 +43,7 @@ static void cooked_keys(void) if (key >= 0x20 && key < 0x100) { putchar(key); } else { - printf("[%04x]", key); + printf("[%s,%04x]", key_code_to_name(key), key); } } } |