1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/showkey.md

25 lines
500 B
Markdown
Raw Normal View History

# 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 scancodes in hexadecimal:
`sudo showkey {{[-s|--scancodes]}}`
- Display keycodes in decimal (default):
`sudo showkey {{[-k|--keycodes]}}`
- Display keycodes in ASCII, decimal, and hexadecimal:
`sudo showkey {{[-a|--ascii]}}`
- Exit the program:
`<Ctrl d>`