Newsgroups: comp.unix.shell
Path: utzoo!utgpu!watserv1!watcgl!idallen
From: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL])
Subject: Re: Clearing the input buffer before a read.
Message-ID: <1990Nov27.184115.9995@watcgl.waterloo.edu>
Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada
References: <1990Nov26.001425.15563@massey.ac.nz> <980@mwtech.UUCP>
Date: Tue, 27 Nov 90 18:41:15 GMT
Lines: 9

In my limited experience

   stty old new

will flush typeahead in a shell script that has a real tty from which
it is reading.  (BSD 4.3 Unix)
-- 
-IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu
 [129.97.128.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada
