From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 19:40:01 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FDD6106564A for ; Tue, 18 Jan 2011 19:40:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 10C7F8FC16 for ; Tue, 18 Jan 2011 19:40:00 +0000 (UTC) Received: from r55.edvax.de (port-92-195-143-131.dynamic.qsc.de [92.195.143.131]) by mx02.qsc.de (Postfix) with ESMTP id 8879A39B50; Tue, 18 Jan 2011 20:39:59 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p0IJdwAO001497; Tue, 18 Jan 2011 20:39:59 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 18 Jan 2011 20:39:58 +0100 From: Polytropon To: questions@freebsd.org Message-Id: <20110118203958.033c4ead.freebsd@edvax.de> In-Reply-To: <8162039A-6C07-4C88-928C-AAB4DD0FFCFE@hiwaay.net> References: <20110118034037.GF90952@weller-fahy.com> <8162039A-6C07-4C88-928C-AAB4DD0FFCFE@hiwaay.net> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Kelly Subject: Re: How to adjust man page line length X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 19:40:01 -0000 On Tue, 18 Jan 2011 06:48:13 -0600, David Kelly wrote: > > On Jan 17, 2011, at 9:40 PM, David J. Weller-Fahy wrote: > > > To expand on the question in the subject: How does one tell `man` not to > > automatically format man pages to 80 columns? I'm looking for a fairly > > easy way to do this, or confirmation it would involve internal > > gymnastics I may not be willing to perform. > > Perhaps FreeBSD should look into using man from MacOS X where "man -c" > will do as requested above. Will format to the output device width. > > For FreeBSD I suspect the solution involves "man -t" and then studying > how to tell groff(1) to format for one's console rather than the default > Postscript output. "man -t" generates very nice printable man pages. I'd like to mention - although this might not be a full answer to the OP's initial question - that this is similarly done when converting manual pages to PS or PDF output for better printing. man2pdf.sh: #!/bin/sh [ "$1" != "" ] && zcat `man -w $1` | \ groff -Tps -dpaper=a4 -P-pa4 -mandoc | ps2pdf - $1.pdf This would cause groff to format for A4 paper width. It's fully possible that a similar approach can be used for requesting a specific terminal width given in characters, rather than inches or centimeters (from a predefined value). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...