TIOCFLUSH of input only - any way to do it?

guy at rlgvax.UUCP guy at rlgvax.UUCP
Fri Jun 24 06:58:41 AEST 1983


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



More information about the Comp.unix.wizards mailing list