From: htoaster@yabbs
To: xenon@yabbs
Subject: re: Loop until keypress
Date: Thu Oct 28 19:16:11 1993
Is this under unix or under dos? If it is under unix you have to play
some fun games with the termio interface, which is a bit tedious to
explain. The other route to go would be to use curses, which will allow
you to control turning echo and cbreak mode on and off, as well as reading
in characters one at a time. The man page is pretty useless though, you
might want to go to a library and see what you can find.
If you want info on doing it with termio (or sgtty, the equiv under bsd
4.3) I can post the code I use to do this in yabbs.
htoaster
|