Keyboard input.
--- 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.
===================