Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

williamnova

macrumors newbie
Original poster
Feb 14, 2011
3
0
Hi, I'm using a simple pipe to send my command line output to my printer, like so:

$ man re_format | lp

However, the bold and underlined text in the man pages are not being formatted properly by the printer; bold text is printed doubled and underlined text is printed with underscores between the letters, so something like:

NAME prints as NNAAMMEE and something like bracket expression is printing as _b_r_a_c_k_e_t _e_x_p_r_e_s_s_i_o_n

How can I fix this?

Thanks in advance; and if this isn't the proper forum for this sort of question please let me know, I wasn't sure which forum this sort of topic went under really.
 
If your printer supports postscript you could use the -t switch to man to use gtroff to output as postscript.

Give this a try even if you don't have a PostScript printer. CUPS should interpret the PostScript on behalf of the printer and send the necessary printer-specific graphics commands.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.