tech-userlevel archive

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

Re: Detecting keypress on console



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.



Home | Main Index | Thread Index | Old Index