diff --git a/pages/linux/showkey.md b/pages/linux/showkey.md new file mode 100644 index 0000000000..2972847676 --- /dev/null +++ b/pages/linux/showkey.md @@ -0,0 +1,24 @@ +# showkey + +> Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues and key remapping. +> More information: . + +- View keycodes in decimal: + +`sudo showkey` + +- Display [s]cancodes in hexadecimal: + +`sudo showkey {{-s|--scancodes}}` + +- Display [k]eycodes in decimal (default): + +`sudo showkey {{-k|--keycodes}}` + +- Display keycodes in [a]SCII, decimal, and hexadecimal: + +`sudo showkey {{-a|--ascii}}` + +- Exit the program: + +`Ctrl + d`