LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   keybindings in linux (https://www.linuxquestions.org/questions/programming-9/keybindings-in-linux-5254/)

isajera 08-09-2001 02:16 AM

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.

sabeel 08-11-2001 03:28 AM

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


All times are GMT -5. The time now is 05:24 PM.