delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/05/20/11:10:03

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Thu, 20 May 2004 18:07:33 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-Id: <3405-Thu20May2004180733+0300-eliz@gnu.org>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <0aa501c43e65$9bf48990$0200000a@broadpark.no> (giva@bgnett.no)
Subject: Re: Window Flicker
References: <mHLqc.2008$ze2 DOT 1015 AT newssvr23 DOT news DOT prodigy DOT com> <7105-Wed19May2004215001+0300-eliz AT gnu DOT org> <09a701c43def$f14e11c0$0200000a AT broadpark DOT no> <u1xlfboih DOT fsf AT gnu DOT org> <0aa501c43e65$9bf48990$0200000a AT broadpark DOT no>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Gisle Vanem" <giva AT bgnett DOT no>
> Date: Thu, 20 May 2004 14:26:00 +0200
> > 
> > Does that mean that you can scroll the window where you run
> > command.com?
> 
> No. Only the CMD/4NT console window.

For a moment there I thought you found how to work around that.  Oh,
well...

> Just that it doesn't use getopt(). E.g. without a $MANPATH:
> c:\> man -d - -M. tcpdump > file
> man version 1.3: debugging output ON
> Have to use "-M .", and it doesn't handle "-h" or "--help".

True.  However, these additions are trivial; patches welcome.

> And how if possible, do I make the groff output saved to
> e.g. g:\MingW\man\cat1, so man doesn't need to call groff
> the next time I do "man tcpdump"? Or is there some other tool
> that recurses my man?\files in MANPATH and creates the
> cat?\files.

There's no way known to me to format all the manual pages in one go
except one by one, with GNU Find traversing the `man' tree and
converting every page.  A single man page can be formatted like so:

    groff -man -T ascii man/man1/tcpdump.1 > man\cat1\tcpdump.1

There can be complications with man pages that need preprocessing.
You can either find out what preprocessors are required by running the
`grog' shell script (supplied with Groff) and then using the command
it suggests, or you can pass all the preprocessor switches to Groff if
you don't care about slower conversion.

Btw, AFAIK, Unix `man' command doesn't save the reformatted page in
its catN directory either.  Some Unix systems have a separate program
called `catman' which formats all the unformatted pages for which
there's no corresponding formatted page.  I guess it should be easy to
write a `catman' clone using the code in man.c as the starting point.

- Raw text -


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