kbdscan

kbdscan sets the FreeBSD console keyboard in raw scancode mode and show scancodes of keys pressed and released. These scancodes can then be used for defining a keymap for the keyboard in the FreeBSD console. See kbdmap(5) and kbdcontrol(1).

Five seconds of inactivity resets the console to the original mode and quits the program.

Note that kbdscan will only work if it is run directly in the FreeBSD console.

Code

https://codeberg.org/mchack/kbdscan

Releases

kbdscan-20110507.tar.bz2

kbdscan-20100427.tar.bz2

There are some FreeBSD console keymaps (along with X11 and Linux equivalents) here:

http://hack.org/mc/files/