-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 18 Feb 2004 16:39:39 -0000 "Carl Peto" <carl@bookmanassociates.com> wrote:
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 think it was getch()). But, that howto is excellent in terms of telling the reader about the various flags.
- -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAM8BR+wA+1cUGHqkRAtkmAJ9U8KysnYvSGcQ8AM8IjyGq/Y2nuACbBqNh J8ToyAPXodOu65yiQGxXC+M= =I29c -----END PGP SIGNATURE-----