This is the mail archive of the
mailing list for the Cygwin project.
Re: Manual page width is fixed and I'd like it not to be
- From: Dave <d_inabox at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 23 Nov 2004 13:44:34 -0800 (PST)
- Subject: Re: Manual page width is fixed and I'd like it not to be
> ----- Original Message -----
> From: "Igor Pechtchanski"
> > On Mon, 22 Nov 2004, Raye Raskin wrote:
> > > ----- Original Message -----
> > > From: "Christopher Faylor"
> > > > On Mon, Nov 22, 2004 at 06:50:57PM -0500, Aaron Miller wrote:
> > > > > Thanks for the pointer, and I'll ask on the cygwin-xfree list as well.
> > > > > It's not really a query about xterm, though: using a shortcut that
> > > > > starts bash in a standard Windows command-shell which is 100 columns
> > > > > wide, if I ask for a manual page, I still get it formatted to eighty
> > > > > columns. I mentioned xterms since that's what I prefer to use, but
> > > > > it's not by any means a problem exclusive to those.
> > > >
> > Well, that's not a full bug report, since man uses a cached cat page if
> > it's present. So, unless your system doesn't have the cat directories,
> > you need to run "man -c" to force regeneration of cat pages. That said, I
> > confirm that "MANWIDTH=20 man -c man" still produces an 80-column manpage.
> > But then, hey, it doesn't work on Linux (RedHat 9) either. We must be
> > misreading the man manpage. :-)
> > Igor
Attached is a patch to man.conf, providing a (hacked) solution allowing MANWIDTH
to work (here at least). Only intended as a short term fixup for those who need
it :). Will need some work if you want it to cope with term resizing.
Thanks to http://lists.gnu.org/archive/html/groff/2003-03/msg00038.html
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
--- man.conf.default 2004-09-26 18:36:22.000000000 +0100
+++ man.conf 2004-11-23 21:32:16.000000000 +0000
@@ -99,7 +99,7 @@
# causes problems, add the -c option to TROFF, NROFF.
TROFF /usr/bin/groff -Tps -mandoc
-NROFF /usr/bin/nroff -c -mandoc 2>/dev/null
+NROFF /usr/bin/nroff -c -mandoc -rLL=`echo $MANWIDTH`n -rLT=`echo $MANWIDTH`n 2>/dev/null
EQN /usr/bin/eqn -Tps
NEQN /usr/bin/eqn -Tutf8
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html