-   Programming (
-   -   Handle keyboard button pressed signal (

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?


TheIndependentAquarius 07-04-2011 11:32 AM

See if this helps:

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:

MarcosPauloBR 07-05-2011 09:51 AM

Anisha, it works!


TheIndependentAquarius 07-05-2011 10:04 AM

Which one out of those did you try, BTW?

All times are GMT -5. The time now is 10:42 AM.