Keyboard input.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 13 Feb 2023 14:31:41 +0200
changeset 2559 42551ca22ca3
parent 2558 8ddc7e78cd41
child 2560 e023a7bbaf3b
Keyboard input.
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.
 ===================