Subject: Detecting keyboard press
To: None <netbsd-help@netbsd.org>
From: Bruce Martin <brucem@cat.co.za>
List: netbsd-help
Date: 12/04/2001 11:34:30
Hi all
Very simple thing I'm sure - sorry if this isn't the correct group to ask! I
am writing some user space C++ code, and want to continuously perform a
number of instructions until a keyboard press takes place. On other O/Ses I
have done something like:
while(!kbhit())
{
// determine the meaning of life
}
// display the meaning of life
What is the _simplest_ way to do this under NetBSD/i386 (1.5.1)
Thanks
Bruce