From owner-freebsd-current@FreeBSD.ORG Sun Aug 14 21:26:57 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48A91106566C; Sun, 14 Aug 2011 21:26:57 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id 0BB228FC12; Sun, 14 Aug 2011 21:26:57 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.4/8.14.4) with ESMTP id p7ELQujP038107; Sun, 14 Aug 2011 14:26:56 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.4/8.14.4/Submit) id p7ELQud2038106; Sun, 14 Aug 2011 14:26:56 -0700 (PDT) (envelope-from sgk) Date: Sun, 14 Aug 2011 14:26:56 -0700 From: Steve Kargl To: Doug Barton Message-ID: <20110814212656.GA38073@troutmask.apl.washington.edu> References: <4E481D29.8020600@freebsd.org> <4E482860.5070102@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E482860.5070102@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: nroff -mandoc | more no longer works X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2011 21:26:57 -0000 On Sun, Aug 14, 2011 at 12:56:16PM -0700, Doug Barton wrote: > The proper way to do this atm is 'man ./foo.1'. I had the same set of > commands under the fingers as well, but doing it the new way has many > benefits. Not the least of which is that you will see the page the same > way man will render it when it's installed. > In ancient times, the UNIX philosphy was to have small programs that one could chain together via a pipe. I've had the following alias in my .cshrc for well over ar decade: alias doc 'cat \!* | eqn | tbl | nroff -mdoc | more' Now, when I'm working on a manpage in my local projects, I get the wonderfully useful doc mkpic.1 MKPIC(1) FreeBSD General Commands Manual MKPIC(1) ESC[1mNAMEESC[0m ESC[1mmkpic ESC[22m-- construct a contour image in MIFF image format ESC[1mSYNOPSISESC[0m ESC[1mmkpic ESC[22m[ESC[1m-aBbcefilsvESC[22m] [ESC[1m-C ESC[4mESC[22mnumESC[24m] [ESC[1m-d ESC[4mESC[22mdenESC[24m] [ESC[1m-F ESC[4mESC[22m{v|h}ESC[24m] [ ESC[1m-G ESC[4mESC[22mCLxRLESC[24m] [ESC[1m-g ESC[4mESC[22mR,G,BESC[24m] [ESC[1m-L ESC[4mESC[22mlvalESC[24m] [ESC[1m-M ESC[4mESC[22mmaxESC[24m] [ESC[1m-m ESC[4mESC[22mminESC[24m] [ESC[1m-n ESC[4mESC[22mcolorsESC[24m] [ESC[1m-O ESC[4mESC[22mnameESC[24m] [ESC[1m-o ESC[4mESC[22mnameESC[24m] [ESC[1m-R ESC[4mESC[22mR,G,BESC[24m] [ESC[1m-r ESC[4mESC[22mCOLxROW ESC[24m] [ESC[1m-S ESC[4mESC[22mscaleESC[24m] [ESC[1m-T ESC[4mESC[22mmapESC[24m] [ESC[1m-t ESC[4mESC[22mCOLxROW+COFF+ROFFESC[24m] ESC[4mfileESC[0m ESC[1mDESCRIPTIONESC[0m The purpose of ESC[1mmkpic ESC[22mis to produce a pixelized contour of a 2D nroff needs to be fixed. -- Steve