LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-09-2001, 02:16 AM   #1
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
keybindings in linux


ok... here's my latest threat to which i will expect few replies ...

anybody know how to read a keyboard from a c-program... and i don't mean like scanf or getch... i mean to read the actual serial port. i'm trying to find out what the keyboard returns for all these weird keys i have on the top of my keyboard... like play and stop and the volume knob... ect. if i can get a keystroke from them, or whatever they return, then i can create a keybinding to use them with my xmms, which doesn't currently read them. i've been searching the web for a bit, but the best i've found so far is a few assembly sites that go way above my head.
 
Old 08-11-2001, 03:28 AM   #2
sabeel
LQ Newbie
 
Registered: Aug 2001
Location: montreal, canada
Distribution: redhat
Posts: 22

Rep: Reputation: 15
i am not sure if this is of any help........ do you know how to work with curses? if you do, you can enable the keyboard with the keypad() func. after this, you can display the key details that you actually pressed (which is returned by the keypad())
for details read the ncurses man pages
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
keyboard shortcuts - keybindings Furlinastis Linux - General 1 11-05-2005 09:52 PM
keybindings in fluxbox telef Linux - Software 1 04-09-2005 03:52 AM
keybindings in KDE jax8 Linux - Newbie 1 07-07-2004 04:33 AM
logitech elite keyboard and keybindings wgodois Linux - Hardware 0 05-22-2004 03:32 PM
I need help changing bash keybindings slakmagik Linux - General 6 02-20-2003 03:59 AM


All times are GMT -5. The time now is 05:54 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration