www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/11/23/16:45:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20041123214434.51713.qmail@web53409.mail.yahoo.com>
Date: Tue, 23 Nov 2004 13:44:34 -0800 (PST)
From: Dave <d_inabox AT yahoo DOT com>
Subject: Re: Manual page width is fixed and I'd like it not to be
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

--0-1369606647-1101246274=:51512
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

> ----- 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

Enjoy,

Dave.


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

--0-1369606647-1101246274=:51512
Content-Type: text/plain; name="man.conf.patch"
Content-Description: man.conf.patch
Content-Disposition: inline; filename="man.conf.patch"

--- 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
 TBL		/usr/bin/tbl


--0-1369606647-1101246274=:51512
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--0-1369606647-1101246274=:51512--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019