🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1843

Re: Clearing the input buffer before a read.

#1843
From: Ian! D. Allen [CGL]
Date: Tue, 27 Nov 1990 18:41
9 lines
755 bytes
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
Technical Details
Message-ID: <1990Nov27.184115.9995@watcgl.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watcgl!idallen
References: <1990Nov26.001425.15563@massey.ac.nz> <980@mwtech.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.shell
Path: arc1-ca.pugleaf.net!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