TIP: Click on subject to list as thread! ANSI
echo: yabbs.unix
to: ALL
from: htoaster@yabbs
date: 1993-10-28 19:16:11
subject: re: Loop until keypress

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

SOURCE: yabbs via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.