mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 13:41:33 +00:00
30 lines
586 B
Plaintext
30 lines
586 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|