LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Handle keyboard button pressed signal (https://www.linuxquestions.org/questions/programming-9/handle-keyboard-button-pressed-signal-889848/)

MarcosPauloBR 07-04-2011 10:45 AM

Handle keyboard button pressed signal
 
Hi people!

I'm learning Signals, and I have a question:

Is possible to make a handle when I press any of the keyboard buttons?

The SIGINT handles the Ctrl-C combination, but I want to handle if any keyboard button was pressed.

Can anybody helps me?

Thanks!

Aquarius_Girl 07-04-2011 11:32 AM

See if this helps: http://www.linuxquestions.org/questi...andler-761272/

I had actually disabled the default interrupt handler and inserted this one.

Was a LQ Newbie that time, don't remember much details about it so.

P.S. See this one too: http://www.linuxquestions.org/questi...1/#post3956458

MarcosPauloBR 07-05-2011 09:51 AM

Anisha, it works!

Thanks!!!

Aquarius_Girl 07-05-2011 10:04 AM

Which one out of those did you try, BTW?


All times are GMT -5. The time now is 05:06 PM.