TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2003-05-28 18:20:48
subject: [--- MAN Output ---]

Hi Neil.

26-May-03 12:29:10, Neil Heller wrote to Winston Smith

 NH> So I'm learning.  I did the MAN MAN thing (out of frustration
 NH> probably more than anything else) and found a REAL simple way to
 NH> output to a text-type file which was easy to print from within
 NH> emacs.  I feel that my education is just beginning.

in unix printing is done by piping the ouput to the lpr program.
so if you want to print in a C program you do FILE
*prn=popen("lpr","w");
then write to prn, printing may not start until after prn is fclose()d.

anyway for printing manpages do

 man whatever |lpr
   gives reasonable results it gives bold and underline.  You can get
   really smart looking man printouts if you ask it for postscript instead
   of text and have the printer/driver set up for postscript...

If you want to print only part of a man entry (propperly called man page)
you can use less's inbuilt pipe function go to the start of the area to
print press [m] then [a] got to the end and type |alpr then press enter

 -=> Bye <=-

---
* Origin: Bad karma, yea Way bad karma.. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.