Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site rlgvax.UUCP Path: utzoo!linus!philabs!seismo!rlgvax!guy From: guy@rlgvax.UUCP Newsgroups: net.unix-wizards Subject: Re: TIOCFLUSH of input only - any way to do it? Message-ID: <699@rlgvax.UUCP> Date: Thu, 23-Jun-83 16:58:41 EDT Article-I.D.: rlgvax.699 Posted: Thu Jun 23 16:58:41 1983 Date-Received: Fri, 24-Jun-83 12:28:42 EDT References: <1590@utcsrgv.UUCP> Distribution: net.unix-wizards,net-wanted Organization: RLG Corp., Reston, VA Lines: 15 A quick check of the manual (and, of course, the code - this IS UNIX, after all!) reveals that doing a TIOCGETP to get the current mode and a TIOCSETP to the same mode will call "wflushtty", which will wait for the output to drain and then flush the input. Note that this is another thing that the USG driver will happily do - TCFLSH can be told to flush the input queue, the output queue, or both. BTW, anybody know whose "bright" idea it was to put all the device documentation in the System V ADMINISTRATOR'S manual, and NOT in the USER'S manual? Only system administrators should be allowed to write screen editors? If you're upgrading to System V, save your System III manuals! Guy Harris RLG Corporation {seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy