Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: when to echo typein Message-ID: <13449@mimsy.UUCP> Date: 8 Sep 88 19:27:09 GMT References: <1059@nmtsun.nmt.edu> <15410@ism780c.isc.com> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 Obviously, the answer is `whenever the user wants it'. All of Unix, VMS, and MS-DOS are deficient in that respect: they only echo when *they* want to. (If you want it when they want it, that is fine for you, of course.) In article <15410@ism780c.isc.com> mikep@ism780c.isc.com (Michael A. Petonic) writes: >On BSD systems, there is a key (default ^O) that flushes the input >queue. It is specified by: ``stty flush ''. ^O flushes *output*, not input. You can flush all typein (including text that spans newlines) by typing ^Z, and then (if necessary) `fg'. This is really just a side effect, but I make use of it occasionally. As far as I know, SysV does not have a way to flush typein that spans newlines (or ^D, or any other form of commit) that does not also send a SIGINT to the current process. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris