Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!elroy!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.unix.wizards Subject: Re: Character echo at read time Message-ID: <2816@jpl-devvax.JPL.NASA.GOV> Date: 8 Sep 88 20:10:54 GMT References: <1059@nmtsun.nmt.edu> <15410@ism780c.isc.com> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 19 In article <1059@nmtsun.nmt.edu> warner@hydrovax.nmt.edu (M. Warner Losh) writes: >I make mistakes with the invisible type ahead. Many times I do catch it >before it's too late. With VMS you can do a ^X anytime the terminal is >not in "raw" mode and clear the current type ahead buffer. How does one >do this under unix? (Really, I'd like to know, but I don't think it can >be done if you have entered several commands...) In article <15410@ism780c.isc.com> mikep@ism780c.UUCP (Michael A. Petonic) writes: : : On BSD systems, there is a key (default ^O) that flushes the input : queue. It is specified by: ``stty flush ''. Yes, it works if : you have typed several lines ahead. That's odd, ^O certainly doesn't have that effect on my BSD system. It flushes output, not input. Is your kernel hacked maybe? When I want flush all my input, I just do a ^Z and then "fg" or "bg". Larry Wall lwall@jpl-devvax.jpl.nasa.gov