UNIX-PX Printer Setup
Harold E. Bamford
bamford at ihlpf.ATT.COM
Wed Mar 22 01:29:24 AEST 1989
In article <721 at kosman.UUCP> kevin at kosman.UUCP (Root) talks about his
confusion re: the screen dump program:
>Continuing <1435 at mtunb.ATT.COM> jcm at mtunb.UUCP (was-John McMillan) writes:
>>
>>The KERNEL only sends the bits out (ref: 'wd' ioctl): there is a
>>screendump program that is responible for translating it to the printer
>>-- and therein's your problem -- at least the software one!
>
>Are you sure? There's no program by that name (or any other unknown progams
>with names ending in 'dump') on my system. Also, I can't figure out how
>to look up a 'wd' ioctl. I do see ioctl(wd,WIOCREAD,&pixmap) but that
>doesn't tell me much.
>I can see how to do this if I'm writing the package, but the data flow
>for the Shift-Print screen dump still looks like a kernel thing to me.
>
>Does anyone have better information?
I have better information. When you request a screen dump, the program
"sprint" is invoked which grabs a bit-image of the screen and formats it
for the printer. I have written a version of sprint that formats for an
HP ThinkJet (native mode) so I know whereof I speak.
Which is not to say that it couldn't have been done better...
If there is sufficient interest, I will post the sprint.c program which
is easily adapted to other printers. In fact, the major complication in
this one is that it rotates the picture 90 degrees for readability.
-- Harold Bamford
More information about the Unix-pc.general
mailing list