It might be a good idea to take a quick look at the Serial-Programming-HOWTO.
Depending on your distribution this is most likely in...
/usr/share/doc/howto/en/html/Serial-Programming-HOWTO/index.html
Chapter 2 gives a good introduction (taught me a lot anyway) to the simplest ways of waiting for input from a tty.
Even though it sounds like you're not using a serial line, I think a lot of the principles will carry across and it's very concise. That is an excellent document, but it goes quite e bit beyond what the original poster wanted, and that is to get a single character from the keyboard (eg. stdin, essentially similar to the Windows conio call (I
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 18 Feb 2004 16:39:39 -0000
"Carl Peto"