public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* keyboard
@ 2004-01-03 22:23 Robert Wimmer
  2004-01-03 23:02 ` keyboard Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Wimmer @ 2004-01-03 22:23 UTC (permalink / raw)
  To: gcc-help

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: keyboard
  2004-01-03 22:23 keyboard Robert Wimmer
@ 2004-01-03 23:02 ` Eljay Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-01-03 23:02 UTC (permalink / raw)
  To: Robert Wimmer, gcc-help

Hi Robert,

>Is there a (simple) possibloity to read keyboard event in linux?

Yes, there is.

I'll send you some source code off line (242 source lines).

--Eljay


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-03 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-03 22:23 keyboard Robert Wimmer
2004-01-03 23:02 ` keyboard Eljay Love-Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).