LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 09-16-2005, 09:58 AM   #1
jasonM
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
Listening directly to the keyboard


Hi,
First some motivation. I've been using theAndroid testing tool. People that I work with feel the scripts that this tool produces would be useful for product demos if one could stop and start them at will. I have managed to achieve this without Tcl threads (the Tcl package I'm using doesn't support threads from what I can find here). I do it with the exec Tcl command and process signals instead. However, to this point I've only been able to send the signals with Tk buttons.

I'd like to be able to do it with the keyboard alone. However I have 1) been unable to figure out which device I should be listening to and 2) been unable to find any information that might point the way. A few people that I seen respond to similar posts have mentioned the Linux Keyboard and Console How-To. Either I'm blind or this doesn't contain information at the level I need. Can anyone tell me how to listen directly to the keyboard, not through a terminal and preferrably not through some library? I have tried /dev/input/keyboard but when I try to "open" that device, perror returns "No Such Device". Also, does it make a difference if I'm trying this on a laptop or a desktop machine with a USB keyboard?


Thanks,

Jason Mazzotta

Last edited by jasonM; 09-16-2005 at 10:01 AM.
 
  


Reply



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
directly listening to keyboard... mukeshj Programming 3 10-07-2005 06:43 PM
Directly polling the keyboard under Linux FredKroket Programming 3 05-04-2005 09:24 AM
Ldap is listening but won't do anything Homer Glemkin Linux - Software 1 12-31-2004 02:10 PM
Ports listening? dareino Linux - Networking 2 03-31-2004 08:40 AM
How to stop X listening GrayGhost Slackware 2 11-14-2003 02:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:18 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration