Re: trapping key press using signals

From: Ram Gupta
Date: Mon Feb 06 2006 - 12:35:24 EST


On 2/6/06, pdn <preetham@xxxxxxxxxx> wrote:
>
> Hi,
> How do i catch the signals generated by keypress using signals.

Why do you need to catch keypress. Keypress generates interrupts which
are controlled by linux kernel. Then it transmits this character(s) to
the application. Hypothetically it is possible to setup some callback
with kernel so that whenver there is a keypress it handles it & then
invokes the call back. But I doubt if it is done currently.

Regards
Ram Gupta
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/