Using META and DEL keys in console
Alejandro Pulver
alejandro at varnet.biz
Sun Mar 6 09:09:28 PST 2005
On Thu, 3 Mar 2005 15:40:25 -0600 (CST)
Lars Eighner <eighner at io.com> wrote:
> On Thu, 3 Mar 2005, Alejandro Pulver wrote:
>
> > Where is the (complete) list of scancodes and which keys produce
> > them?
> >
> > If there is not, as I think, how can I know what scancode is
> > produced by each key in my keyboard (a program, maybe)?
>
> As a practical matter, for the console keyboard I generally work
> backwards from a known keymap (one of the distribution keymaps),
> and cut and try. man 5 kbdmap lists all the values you can
> assign to key combinations (note the "5" - otherwise you are
> likely to get man 1 kbdmap by default). Notice that you can
> use kbdmap or kbdcontrol to load a keymap to experiment with and
> you do not have to reboot to see what happens. I find this
> works very well with American PC keyboards where there are only
> a handful of keys that are in doubt, even with fairly esoteric
> models, like butterflies with two keypads.
>
> The distribution maps, after all, were not put together by crazy
> people, so the unshifted values of most of the keys are pretty
> logical.
>
[snipped]
Your answer helped me much.
Thanks and Best Regards,
Ale
More information about the freebsd-questions
mailing list