HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

showkey — Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues a

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thekeyscommandkeycodeshowkeyclipresseddisplay
linux

Problem

How to use the showkey command: Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues and key remapping. More information: <https://manned.org/showkey>.

Solution

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>

Code Snippets

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>

Context

tldr-pages: linux/showkey

Revisions (0)

No revisions yet.