Reading hot keys

This is a discussion on Reading hot keys within the Linux Programming forums, part of the Platform Specific Boards category; Hi! How can I read "hotkeys" in Linux? The standard getch doeasn't work (neither scanf - obviusly). These hot keys ...

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    23

    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...

  2. #2
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192
    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.
    Help everyone you can

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    23
    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...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading words and analyzing words from file
    By desmond5 in forum C Programming
    Replies: 7
    Last Post: 02-26-2008, 03:51 PM
  2. Replies: 2
    Last Post: 01-28-2008, 03:07 AM
  3. help with reading from stream
    By movl0x1 in forum C Programming
    Replies: 7
    Last Post: 05-31-2007, 11:36 PM
  4. Can you Microwave Regular Hot dogs?
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 38
    Last Post: 01-11-2005, 01:53 AM
  5. A Miracle has occurred in the realm of Hot Dogs
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 05-08-2004, 04:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21