[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re:[PATCH] man: let the user specify the format command
From:       Alastair Hughes <hobbitalastair () yandex ! com>
Date:       2016-11-01 19:48:10
Message-ID: 5844161478029690 () web20h ! yandex ! ru
[Download RAW message or body]

> On Fri, Oct 28, 2016 at 9:16 AM, Alastair Hughes
> <hobbitalastair@yandex.com> wrote:
> 
> > Package: busybox
> > Version: v1.25.1
> > Severity: wishlist
> > 
> > The attached patch lets the user configure the command used to format man pages \
> > by busybox's man. I'm using heirloom-doctools instead of groff in a toy distro, \
> > which doesn't provide gtbl (just tbl) and doesn't work with -Tascii (I use -Tutf8 \
> > instead), so I am using this to let me view man pages. I think that it would also \
> > be useful if busybox was built without seamless decompression - the command could \
> > pipe the man page through gunzip before sending it on. 
> > I've tested this by building with the defaults, with a changed command, and \
> > without man.
> 
> The "big" man tool uses /etc/man_db.conf to override these.
> 
> I committed a change which allows that to work:
> 
> man: allow nroff and tbl commands be overridden; unmangle writing to files
> 
> Parse this in config files:
> DEFINE col ...
> DEFINE tbl ...
> DEFINE nroff ...
> Add width options to nroff command line.
> Use "tbl", not "gtbl", as default tbl command.
> Export GROFF_NO_SGR=1 and use "col -b -p -x" instead of pager when
> writing to file.
> 
> Please try current git, try making it work for you with suitable
> /etc/man_db.conf,
> let me know if it's not sufficient.

That works fine, thanks!

Alastair Hughes
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic