tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Detecting keypress on console



Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:

> I would like to execute a scipt when a function key is pressed on the
> console. Is there a mechanism to detect keypresses on wscons?  If I 
> make a daemon that opens /dev/console it will steal the input from
> getty/login/sh, which is not what I intend.

May be abuse pmf(9) with a small pseudodevice kernel module?

Alternatively you should also be able re-inject wsevents you are not
interested in back into the wsmux (instead of doing that at tty(4)
level as tls@ suggested).

-uwe



Home | Main Index | Thread Index | Old Index