netbsdnoob Hello to everyone I was wondering if there was any kind of setting which would allow me to map CAPS LOCK to an additional ESC.
PS/2 or USB keyboard? (Or some other exotic type?) And, what country variant: US, UK, DE, ...?
For a single PS/2 (also XT, AT) US keyboard, put this in /etc/wscons.conf
mapfile=/etc/keymap-ps2.txt
And in /etc/keymap-ps2.txt
mapfile:
keycode 58 = Escape
For a system with just a US USB keyboard, create a mapfile containing:
keycode 57 = Escape
For anything else, refer to:
PS/2 scancodes: sys/dev/pckbport/wskbdmap_mfii.c
USB scancodes: sys/dev/hid/hidkbdmap.c
Symbol names: sys/dev/wscons/wsksymdef.h