[syslinux:master] keytest: show the human name together with the keycode
syslinux-bot for H. Peter Anvin
hpa at linux.intel.com
Mon Apr 18 13:54:19 PDT 2011
Commit-ID: b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342
Gitweb: http://syslinux.zytor.com/commit/b51b322e9fa9b55ed0b181f3d5e5a1f1c8ed6342
Author: H. Peter Anvin <hpa at linux.intel.com>
AuthorDate: Mon, 11 Apr 2011 15:33:48 -0700
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 11 Apr 2011 15:33:48 -0700
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 at linux.intel.com>
---
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 b4f8f5b..a5cdd5c 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);
}
}
}
More information about the Syslinux-commits
mailing list