: >
: >can someone tell me how I can print to a normal Epson dotmatrix
: >printer, without getting the staircase effect.
: Unix files use only the Line Feed to seperate line, where DOS uses the
: Line Feed/Carriage Return pair. your printer needs the Carriage Return
: to start a new line. A simple printer filter that inserts a Carriage Return
: whenever it see a Line Feed will work.
There's an interresting example of a printer filter in
/usr/src/usr.sbin/lpr/filters
(comes in source form).
: >Also, i'd like to be able to print the man pages to the laser
: >printer, but they come out with all sorts of strange charactrers
: >in amongst the text?
: The man pages are formatted with backspace underscore to underline,
: backspace and repeat of the character for bold. If you have a Postscript
: printer, you should format and print the document using either psroff
: or groff. For example:
: psroff -mandoc /usr/share/man/man${NUMBER}/${FILENAME}.${NUMBER}.gz
: (where ${FILENAME} and ${NUMBER} describe the page you want to print and the
: postscript printer is the default printer), or
: groff -Tps -mandoc /usr/share/man/man${NUMBER}/${FILENAME}.${NUMBER}.gz > /tmp/${FILENAME}.ps
: lpr -s /tmp/${FILENAME}.ps
: (wait to print)
: rm /tmp/${FILENAME}.ps
If you are using FreeBSD, the "man -t" command is far simpler:
man -t printcap | lpr -Pps
Yet another advantage, apart from compactness, is that "man -t" will take
care of starting tbl or eqn if required ! (sometimes, man-pages _do_ contain
tables, X11 is a good candidate...)
Regards,
Philippe.
--
-------------------------------------------------------------------
P. Causse http://www.fdn.fr/~pcausse