On Fri, Mar 22, 2019 at 04:11:31PM +0000, 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/login/sh, which is not what I intend. > > Any idea?
Hold your nose and TIOCSTI.