On Thu, Feb 19, 2009 at 3:21 PM, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
On Thu, Feb 19, 2009 at 3:15 PM, Andreas Radke <a.radke@arcor.de> wrote:
Am Thu, 19 Feb 2009 15:11:02 -0600 schrieb Aaron Griffin <aaronmgriffin@gmail.com>:
On Thu, Feb 19, 2009 at 3:05 PM, Eric Bélanger <snowmaniscool@gmail.com> wrote:
On Thu, Feb 19, 2009 at 3:58 PM, Aaron Griffin <aaronmgriffin@gmail.com> wrote:
On Thu, Feb 19, 2009 at 2:41 PM, Xavier <shiningxc@gmail.com> wrote:
On Thu, Feb 19, 2009 at 9:13 PM, Eric Bélanger <snowmaniscool@gmail.com> wrote: > On Thu, Feb 19, 2009 at 10:57 AM, Andreas Radke > <a.radke@arcor.de> wrote: >> Am Thu, 19 Feb 2009 07:27:01 -0600 >> schrieb Dan McGee <dpmcgee@gmail.com>: >> >>> Don't Andy's and Jan's words here contradict with regard to >>> creating a man user? >>> >>> -Dan >>> >> >> This was my mistake. I had cp'ed the install file from the >> community pkg and missed make my changes before the commit. >> >> So a -2 pkg is now up for signoff. I removed the unwanted man >> user creation. Added a msg for anybody upgrading from 2.5.3-1 >> and earlier to remove the user and change permission on the db >> dir. The cronjob runs in quiet mode now. Added a backup array >> for its config file. Now it should be ready to move. >> >> Anything else to improve? >> >> -Andy >> > > I haven't tried the -2 pkg yet , but I noticed that with man-db I > don't have coloured man pages anymore when using 'less' as the > pager. To get coloured man pages, I need to use 'most' as pager. > Is there anyone else who has this problem? It might be caused by > a lack of a feature in man-db (I can't see why it would be the > case) or a config issue. I haven't spent much time looking it up > as it's a minor thing and works with 'most' although I would > prefer 'less'. > > Eric >
http://bugs.archlinux.org/task/9130#comment31955
If man-db becomes the default man reader, should we use most as the default pager, or export GROFF_NO_SGR=1 by default?
Can you find what this affects? Added a profile.d script to export this might not be a bad idea, but it's not exactly a good idea either. most as a default pager is probably not a good idea.
I was thinking the same about using a profile script. Maybe that variable can be set in the config file: etc/man_db.conf
Adding -c to the TROFF and NROFF settings in man_db.conf fixes this
I'd like to leave the package plain upstream. Maybe we can put this into a wiki page where we also write down how man-pages have to be encoded and where to put.
Hmm, we ship modified config files for a lot of things (the "sane defaults" rationale). This one seems cryptic enough to boggle most people. It's not like there's a "turn_color_on = yes" setting... it's a command line arg to groff, which most people haven't heard of... to me it seems more beneficial to do it at the package level and we end up with groff output as close to what we got with the 'man' package as we can get.
I'll log a bug with upstream for this one
Apparently Debian disables SGR output the same way we do some character translations in the groff package: The following is in /usr/share/groff/site-tmac/{man,mdoc}.local if n \{\ . \" Debian: Disable the use of SGR (ANSI colour) escape sequences by . \" grotty. . if '\V[GROFF_SGR]'' \ . output x X tty: sgr 0 .\} We could do the same, considering we already make additions to the tmac files - would anyone be against this?