Article View: comp.sys.sun
Article #10992Re: printer connections on Suns
From: Robert Perlberg
Date: Wed, 15 Feb 1989 19:21
Date: Wed, 15 Feb 1989 19:21
19 lines
922 bytes
922 bytes
In my HP filter, I wait for the output to flush with this code:
#include <stdio.h>
#include <sgtty.h>
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
Technical Details
Message-ID:
<1375@number1.step.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!rice!sun-spots-requestReferences:
<8901130024.AA27274@> <1262@etive.ed.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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