Emmanuel Dreyfus <m...@netbsd.org> 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