LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Trouble getting input from USB keyboard in a C++ program called from a SSH shell (http://www.linuxquestions.org/questions/programming-9/trouble-getting-input-from-usb-keyboard-in-a-c-program-called-from-a-ssh-shell-766360/)

kungpower13 11-02-2009 08:45 PM

Trouble getting input from USB keyboard in a C++ program called from a SSH shell
 
Hi all,

I'm a newbie to this forum, so feel free to move my post if required.

I'm trying to write a C++ program that will run on an Arm-Linux platform with no GUI.
This application needs to read a stream from a USB keyboard.
I can obtain keycodes when I parse the /dev/input/event0 file, so the driver seems to work well.
I would use cin in a standard app, but the problem is that my application is called from an external console (SSH), so the only keyboard that I can read is the one from the calling machine. I cannot read the USB keyboard of the Arm-Linux platform.

Anybody has a clue?

Thanks, your help is really appreciated.

kungpower13 11-03-2009 07:28 PM

No answer yet... maybe I posted in the wrong forum? Maybe it's a case of RTFM, or LMGTFY, but I'm obviously having a hard time finding an answer.

Any reference or suggestion would really be appreciated.

I also realize that my request may look like hacking, so there is the explanation:

I work with an embedded system, with no GUI, and I start the application from a console, and want to use the input from a different keyboard. The idea is to use a keyboard without hooking the platform (which is a mobile robot controller) to an external computer except for starting the program, which is hard on a keyboard without visual feedback.

thanks


All times are GMT -5. The time now is 09:51 PM.