Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-09-2001, 03:16 AM   #1
Senior Member
Registered: Jun 2001
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, 04:28 AM   #2
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


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

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

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