I'm looking for a way to intercept keypresses from the console keyboard in
order to use some hot key combination.
This is to be used in a speech driven screen review
software for blind people as I am. The problem is that I didn't find a
clean way to trap some keys typed on whatever virtual console is active
from a running daemon process.
In the console_ioctl man page I found the following:
KDSIGACCEPT
The calling process indicates its willingness to
accept the signal argp when it is generated by
pressing an appropriate key combination. (1 <=
argp <= NSIG). (See spawn_console() in
linux/drivers/char/keyboard.c.)
I don't really understand how it works and the kernel source wasn't of
much help.
If someone can show me an example or have a better solution to this
problem, please tell me!
Thanks!
Nicolas Pitre, B. ing.
nico@cam.org
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu