On 18 September 2013 14:33, Phil Ashby <phil.ashby@bt.com> wrote:
Then you need to read the key press events from the /dev/input/eventX device node and possibly translate into a virtual terminal device (pty) for the application to read.
Thanks for this, I can now see raw data using: cat /dev/input/event13 | hexdump -C .. which is a start, although I need to parse the events. Are there any libraries (I assume there are somewhere) for parsing keyboard event data?
Sending to the chosen application may be trickier: depends if it can be persuaded to read from a network connection or named pipe (easy), or if it needs a real terminal node, in which case openpty() and friends will be needed to fool the app into thinking it's talking to a serial port.
At present the application doesn't exist so that gives me some flexibility :-) Mark -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG