Index | Thread | Search

From:
Helg <helg-openbsd@gmx.de>
Subject:
kbd(8): man page improvement
To:
tech@openbsd.org
Date:
Sat, 27 Dec 2025 14:27:20 +0100

Download raw body.

Thread
While it's clear from this man page that it's possible to list all
encoding with the -l flag, there is no mention of the hidden .metaesc
option. This man page is also a dead end so add reference to wsconsctl,
which can also be used to change the keyboard.encoding.

ok?


Index: kbd.8
===================================================================
RCS file: /cvs/src/sbin/kbd/kbd.8,v
diff -u -p -r1.13 kbd.8
--- kbd.8	27 Jul 2015 17:28:39 -0000	1.13
+++ kbd.8	27 Dec 2025 13:21:51 -0000
@@ -64,8 +64,15 @@ List all available keyboard encodings.
 Quiet mode.
 No message is printed unless an error occurs.
 .El
+.Pp
+The .metaesc option can be applied to any layout.
+If set, keys pressed together with the ALT modifier are prefixed by an ESC
+character.
+(Standard behaviour is to add 128 to the ASCII value.)
 .Sh FILES
 .Bl -tag -width "/etc/kbdtypeXXX"
 .It Pa /etc/kbdtype
 Default national encoding.
 .El
+.Sh SEE ALSO
+.Xr wsconsctl 8