LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 11-02-2009, 09:45 PM   #1
kungpower13
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0
Trouble getting input from USB keyboard in a C++ program called from a SSH shell


[Log in to get rid of this advertisement]
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.
windows_98_nt_2000 kungpower13 is offline  
Tag This Post , ,
Reply With Quote
Old 11-03-2009, 08:28 PM   #2
kungpower13
LQ Newbie
 
Registered: Nov 2009
Posts: 2
Thanked: 0

Original Poster
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
windows_98_nt_2000 kungpower13 is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB keyboard - Capture key strokes/input v333k Linux - Software 2 10-19-2009 02:44 PM
usb keyboard as input for console driver prettysmurfed Linux - General 0 11-28-2007 04:44 PM
USB Keyboard & Mouse won't allow input on boot cyberguy03 Linux - Hardware 2 08-15-2007 03:34 PM
shell scripts ...--can it be called with in a c program narendra.pant Linux - Newbie 2 08-17-2006 08:43 AM
Any shell can record Keyboard input? yuzuohong Linux - General 3 03-26-2003 04:09 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration