# HG changeset patch # User Oleksandr Gavenko # Date 1676291501 -7200 # Node ID 42551ca22ca35257a4cbe26a00f1686725e91f0f # Parent 8ddc7e78cd41558f6d007d20b7bd4610a239f6e3 Keyboard input. diff -r 8ddc7e78cd41 -r 42551ca22ca3 x.rst --- a/x.rst Mon Feb 13 12:46:06 2023 +0200 +++ b/x.rst Mon Feb 13 14:31:41 2023 +0200 @@ -101,18 +101,22 @@ server also maintains a list of strings that describe the keysyms, such as ``a``, ``B``, and ``Control``. -Find the keycode. -================= +Find keycodes +============= -:: +From X server:: - $ xev - $ xev | grep keysym --color - $ cat /usr/include/X11/keysymdef.h + xev + xev | grep keysym --color + cat /usr/include/X11/keysymdef.h + +From a hardware terminal:: -Don't run under X:: + showkey - $ showkey +Translated codes by PTY (including virtual):: + + showkey -a To do same under X:: @@ -143,6 +147,8 @@ Ubuntu Keycodes howto. http://en.gentoo-wiki.com/wiki/Multimedia_Keys Gentoo Multimedia Keys howto. +https://wiki.archlinux.org/title/Keyboard_input + Keyboard input. List input devices. ===================