How to capture keyboard input without writing on screen
http://stackoverflow.com/questions/14415306/how-to-capture-keyboard-input-without-writing-on-screen
|
I'm writing an ANSI C app for Debian Linux, that captures data from USB keyboard and sends some data via RS232 port and LAN (it's some kind of industrial machine). There is no screen connected to the PC. I'm using capturing from "/dev/input/event1" and everything works fine, but after starting the computer shows up system login/pass prompt and keyboard is captured by my app but also by system login. My question is how to disable capturing keyboard by system for login, but keep it running with my app? |
|||
|
The problem that you are facing is that by default all input event
handlers for a device receive all events. There are at least two
handlers for your case: the keyboard driver for the console and an To avoid this, your application should instruct the To grab a device:
To release a grabbed device:
|
|||||
|



浙公网安备 33010602011771号
/etc/inittabperhaps) to avoid the login prompt... – Basile Starynkevitch Jan 19 '13 at 14:38