RE: c polling routine


Subject: RE: c polling routine
From: Jan Zumwalt (jwzumwalt@neatinfo.com)
Date: Sat Feb 08 2003 - 18:38:45 AKST


If this is true, is there a GNU "C" syntax you can suggest?
i.e. cmd = getc();

JZ

-----Original Message-----
From: aklug-bounce@aklug.org [mailto:aklug-bounce@aklug.org]On Behalf Of
Arthur Corliss
Sent: Saturday, February 08, 2003 3:29 PM
To: Jan Zumwalt
Cc: Aklug
Subject: Re: c polling routine

On Sat, 8 Feb 2003, Jan Zumwalt wrote:

> Can someone point me to a linux =93c=94 keyboard polling routine? I need=
 to
> check the key buffer without requiring the user to press =93enter=94. =93=
C=94 does
> not support native hardware support. It only supports =93file=94input and
> expects some type of EOF.

That's not true. The POSIX specification calls for non-blocking capabiliti=
es
for read calls, etc. See fcntl(5) and O_NONBLOCK flag. STDIN is a filehan=
dle
like any other. . .

=09--Arthur Corliss
=09 Bolverk's Lair -- http://arthur.corlissfamily.org/
=09 Digital Mages -- http://www.digitalmages.com/
=09 "Live Free or Die, the Only Way to Live" -- NH State Motto

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Sat Feb 08 2003 - 18:37:57 AKST