formatting MAN output to more than 72 colums for printing to dot matrix printer

May 06th, 2012 - 03:22 pm ET by Jerry Coppa | Report spam
This is most likely a general linux question but since I'm in slackware
here goes. I'm trying to format the output of a man page to my dot matrix
printer with

man nroff | pr -W 132 > /dev/lp0

pr formats the right width as evidenced by the page number where I want
them to be, but the man output is stuck at 72 columns. Any Suggestions?

Jerry
email Follow the discussionReplies 6 repliesReplies Make a reply

Replies

#1 Henrik Carlqvist
May 06th, 2012 - 03:54 pm ET | Report spam
Jerry Coppa wrote:

This is most likely a general linux question but since I'm in slackware
here goes. I'm trying to format the output of a man page to my dot matrix
printer with

man nroff | pr -W 132 > /dev/lp0

pr formats the right width as evidenced by the page number where I want
them to be, but the man output is stuck at 72 columns. Any Suggestions?



You can override the man width adopting to the terminal width by setting
the environment variable MANWIDTH. Example:

export MANWIDTH2
man -P "pr -W 132" > /dev/lp0

regards Henrik
The address in the header is only to prevent spam. My real address is:
hc351(at)poolhem.se Examples of addresses which go to spammers:

Similar topics