On Wed, Nov 23, 2022 at 12:21:26AM +0100, Mike Fischer wrote:
> Hi!
>
> I???m trying to use a German Apple Mac keyboard with OpenBSD 7.2 and I???d
> like to match the mapping to that of macOS.
>
> `wsconsctl keyboard.encoding=de` helps, but several mappings are
> different/missing. For example the pipe character | should be alt-7 but
> isn???t. Mostly the alt-combinations are missing or wrong.
>
> So I thought I could use keyboard.map settings to correct this. But I can???t
> find any documentation of the format ??? very unusual for OpenBSD.
>
> Did I miss something?
>
> Can someone point me to the documentation please?
>
> Thanks!
>
> Mike
>
hi.
maybe you are looking for wsksymdef.h:
WSCONSCTL(8) System Manager's Manual WSCONSCTL(8)
...
Modify the current keyboard encoding so that, when the Caps
Lock key is pressed, the same encoding sequence as Left
Control is sent. For a full list of keysyms, and keycodes,
refer to the /usr/include/dev/wscons/wsksymdef.h file.
# wsconsctl keyboard.map+="keysym Caps_Lock =
Control_L"
jmc