Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10 5/3/83; site utcsrgv.UUCP
Path: utzoo!utcsrgv!dave
From: dave@utcsrgv.UUCP (Dave Sherman)
Newsgroups: net.unix-wizards
Subject: TIOCFLUSH of input only - any way to do it?
Message-ID: <1590@utcsrgv.UUCP>
Date: Wed, 22-Jun-83 13:58:41 EDT
Article-I.D.: utcsrgv.1590
Posted: Wed Jun 22 13:58:41 1983
Date-Received: Wed, 22-Jun-83 19:05:35 EDT
Distribution: net.unix-wizards,net-wanted
Organization: CSRG, University of Toronto
Lines: 15

I am writing an interactive program to be used by non-computer people.
I want to spit some text to the screen, and say "press RETURN to continue",
and somehow ensure that only a CR pressed after I put the text on the
screen will be caught.
	The obvious thing is to flush all input with ioctl-TIOCFLUSH,
immediately before saying "press RETURN". But when I do that, the TIOCFLUSH
stops some of the output from getting to the screen.
	Is there any way to flush the input queue without flushing the
output, or a way to wait until the chars on the output queue have actually
been sent to the terminal?

Thanks for any (*pointer)s.

Dave Sherman
Toronto