From owner-freebsd-questions@FreeBSD.ORG Thu Sep 8 20:57:05 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FF2216A41F for ; Thu, 8 Sep 2005 20:57:05 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id E068643D58 for ; Thu, 8 Sep 2005 20:57:04 +0000 (GMT) (envelope-from fbsdlists@gmail.com) Received: by xproxy.gmail.com with SMTP id i31so1667236wxd for ; Thu, 08 Sep 2005 13:57:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lQsHUV/DoWnigwb1Yu9vnbTHLhnhS04yPGXw5ikm4kkUvBe5U1ewU0D5XSaGXMnvMczNgdNgpZe/3BQHkQlLMthlQMFMve84B3yTbOGsYXhUUkBKhh6deo0HO+ffLmRajlhfog8PtgcvLWe88kHmlNUJ4LNdQjc51SJSaUu9nyc= Received: by 10.70.29.10 with SMTP id c10mr15744wxc; Thu, 08 Sep 2005 13:50:29 -0700 (PDT) Received: by 10.70.67.15 with HTTP; Thu, 8 Sep 2005 13:50:29 -0700 (PDT) Message-ID: <54db43990509081350150465ac@mail.gmail.com> Date: Thu, 8 Sep 2005 16:50:29 -0400 From: Bob Johnson To: Stijn Hoop , Giorgos Keramidas , Gerard Seibert , freebsd-questions In-Reply-To: <20050908203203.GP20229@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43206857.1010803@daleco.biz> <20050908165328.GB37407@orion.daedalusnetworks.priv> <20050908173646.GO20229@pcwin002.win.tue.nl> <20050908175519.GA20222@falcon.midgard.homeip.net> <20050908203203.GP20229@pcwin002.win.tue.nl> Cc: Subject: Re: Printing MAN pages X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsdlists@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2005 20:57:05 -0000 On 9/8/05, Stijn Hoop wrote: > On Thu, Sep 08, 2005 at 07:55:19PM +0200, Erik Trulsson wrote: > > On Thu, Sep 08, 2005 at 07:36:46PM +0200, Stijn Hoop wrote: > > > On Thu, Sep 08, 2005 at 07:53:28PM +0300, Giorgos Keramidas wrote: > > > > Gerard Seibert wrote: > > > > > I am trying to figure out how to print 'man' pages. If I try a > simple > > > > > redirect, such as: "man foo > foo.txt" the new file is loaded wit= h > > > > > control symbols, etc. that are not really printable. I want to sa= ve > > > > > the files if possible, and print them out at a later date. It tha= t > is > > > > > not possible, how would I go about printing them out in real time= ? > > > >=20 > > > > =09man -t foo > foo.ps > > > >=20 > > > > will generate Postscript output, which is a lot better for printing= . > > >=20 [...] > > > This does not exactly spell 'output postscript' to me... > >=20 > > It does if you know that postscript is the default output format of > > groff. If one doesn't know what format groff outputs by default, it i= s > > easily learned by reading the groff(1) manpage. >=20 > True. I'm all in favor of a little bit more userfriendliness in man pages > as long as it's not overkill though. >=20 > How about: >=20 > =09-t=09Generate a Postscript version of the manpage, intended for > =09=09printing, by using /usr/bin/groff -S -man to format the manual > =09=09page, passing the output to stdout. The output from > =09=09/usr/bin/groff -S -man may need to be passed through some > =09=09filter or another before being printed. >=20 > That way I can do /print in less and still get some useful hint. >=20 In make.conf(5) it says PRINTERDEVICE (str) The default format for system documentation, depen= ds on your printer. This can be set to ``ascii'' for simpl= e printers, or ``ps'' for postscript or graphics printers with a ghostscript filter, or both. So does PRINTERDEVICE change the default output for groff, or does it do something else, or nothing at all, and how does it affect your proposed change? - Bob