Re: Detecting keypress on console

2019-03-22 Thread Thor Lancelot Simon
On Fri, Mar 22, 2019 at 04:11:31PM +, Emmanuel Dreyfus wrote: > Hello > > 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/lo

Detecting keypress on console

2019-03-22 Thread Emmanuel Dreyfus
Hello 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. Any idea? -- Emmanuel Dreyfus m...@netb