4.1 Bsd terminal handler improvements
mark at cbosgd.UUCP
mark at cbosgd.UUCP
Wed Jun 22 13:46:43 AEST 1983
Note that TIOCDRAIN can be emulated in 4.1BSD with TIOCOUTQ,
which returns the number of characters waiting in the queue.
You loop until it goes below the level you want (waiting until
zero may result in jerky output). A high resolution sleep,
such as nap, or select, or the fast timer driver, helps.
TIOCOUTQ does not seem to be documented in 4.1 or 4.1c.
More information about the Comp.unix.wizards
mailing list