Wednesday 4 October 2017

keyboard - Show keys pressed in Linux


In Windows there is a program called Keyboard Jedi that shows what keys are pressed on the keyboard.


Is there an equivalent for Linux?



Answer



Others have mentioned xev, which is good when you're running X11. When you're at the console, however, showkey is what you want.


And if you’re at an SSH session or a real terminal, you can use /usr/lib/ncurses/examples/demo_altkeys (available in Debian in the ncurses-examples package).


Note that xev for "a" gives 38, while showkey for "a" gives 30, because xev reports scancodes, whereas showkey by default reports keycodes.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...