[Tutor] Outputting Data to Printer
ALAN GAULD
alan.gauld at btinternet.com
Fri Nov 20 16:08:34 CET 2009
> > There is no universal easy way to print stuff unfortunately.
> > In console mode on Unix its not too bad, you can send data
> > to lpr, just as you would from the shell.
> That is a surprise! I was so use to using lprint as in Basic.
BASIC ran on a predefined platform so could be sure where the
printer lived and minimium set of print codes to use.
Because Unix has multile different ways to connect printrs etc
its much harder to do.
> Oh well. I will have to study up on fmt and/or groff.
They are formatting commands. fmt converts plain text into
nicely aligned paragraphs etc. groff is similar to LaTeX but
more programmer friendly (IMHO). man pages are formatted with groff.
> Would those two commands (fmt, groff) send data to lpr from shell?
No, you usually use them as part of a pipeline, senduing the ouput
to lpr (or maybe lp on Linux?)
> Is lpr the same hookup for USB port?
Should be, because it uses the installed printer driver.
HTH,
Alan G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091120/ecbe520f/attachment.htm>
More information about the Tutor
mailing list