Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!rice!sun-spots-request From: step!number1!perl@philabs.philips.com (Robert Perlberg) Newsgroups: comp.sys.sun Subject: Re: printer connections on Suns Message-ID: <1375@number1.step.UUCP> Date: 15 Feb 89 19:21:00 GMT References: <8901130024.AA27274@> <1262@etive.ed.ac.uk> Sender: usenet@rice.edu Organization: Dean Witter Reynolds Inc., New York Lines: 19 Approved: Sun-Spots@rice.edu Original-Date: 9 Feb 89 20:24:25 GMT X-Sun-Spots-Digest: Volume 7, Issue 156, message 10 of 11 In my HP filter, I wait for the output to flush with this code: #include #include outputwait(fd) int fd; { int outchars; while(ioctl(fd, TIOCOUTQ, &outchars) == 0 && outchars > 0) { sleep(1); } } Robert Perlberg Dean Witter Reynolds Inc., New York phri!{dasys1 | philabs | mancol}!step!perl