2024-03-27 08:16:10 +00:00
|
|
|
# showkey
|
|
|
|
|
|
|
|
> Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues and key remapping.
|
|
|
|
> More information: <https://manned.org/showkey>.
|
|
|
|
|
|
|
|
- View keycodes in decimal:
|
|
|
|
|
|
|
|
`sudo showkey`
|
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Display scancodes in hexadecimal:
|
2024-03-27 08:16:10 +00:00
|
|
|
|
|
|
|
`sudo showkey {{-s|--scancodes}}`
|
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Display keycodes in decimal (default):
|
2024-03-27 08:16:10 +00:00
|
|
|
|
|
|
|
`sudo showkey {{-k|--keycodes}}`
|
|
|
|
|
2024-06-12 06:43:11 +01:00
|
|
|
- Display keycodes in ASCII, decimal, and hexadecimal:
|
2024-03-27 08:16:10 +00:00
|
|
|
|
|
|
|
`sudo showkey {{-a|--ascii}}`
|
|
|
|
|
|
|
|
- Exit the program:
|
|
|
|
|
|
|
|
`Ctrl + d`
|