keyboard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi there,

is there a (simple) possibility to read keyboard events in linux ?
- without using X or Ncurses ?

i only want to know if there is a key pressed and a character return
for simulating events in testing a simple protocol/socket implementation.
it should work like :

 do
    if (keypressed()) {
     ch = ...
     printf("%c",ch);
     }
 while (ch != 'q');

maybe someone can help me

thanx

_________________________________________________________________
Spielen Sie online mit ihren Freunden! Der MSN Messenger 6. 1 macht's möglich! http://messenger.msn.at/



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux