mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-06 04:55:25 +02:00
25 lines
500 B
Markdown
25 lines
500 B
Markdown
![]() |
# 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`
|
||
|
|
||
|
- 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`
|