From 6a5367ac00cd799fcee4c59cffa86d17aeb9f83a Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sun, 19 Jul 2020 11:51:58 +0200 Subject: [PATCH] verbose option displays key names instead of values very crude implementation, works for standard keys but breaks for media/special keys, good enough for now --- hkd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hkd.c b/hkd.c index a1d9879..ad9ace2 100644 --- a/hkd.c +++ b/hkd.c @@ -304,7 +304,8 @@ int main (int argc, char *argv[]) if (vflag) { printf("Pressed keys: "); for (unsigned int i = 0; i < pb.size; i++) - printf("%d ", pb.buf[i]); + //printf("%d ", pb.buf[i]); + printf("%s ", key_conversion_table[pb.buf[i] - 1].name); putchar('\n'); }