-
Reading hot keys
Hi!
How can I read "hotkeys" in Linux? The standard getch doeasn't work (neither scanf - obviusly).
These hot keys codes are:
Files - 133
E-mail - 236
WWW - 178
Search - 229
Files - 133
E-mail - 236
WWW - 178
Mute - 160
Volume - - 174
Volume + - 176
I've got these codes from xev.
Thenks...
-
You can use either Curses for this functionality or write your own getch() function. See the tutorials of Curses (CLI based windowing) for more details.
-Harsha.
-
I've already tried getch() from ncurses. Unfortuntely didn't work.
It read every key (F1..F12 etc.) but NOT hot keys and 3 other keys "print scrn", "scroll lock", "pause break".
I don't know why...