You are not logged in.
Hi all,
I've been using coloured manpages for a while now (using LESS_TERMCAP_xx variables from the tip here: http://wiki.archlinux.org/index.php/Pos … ed_manpage) and I noticed recently that the output is no longer coloured. It may have been going on for a while, I've only just noticed.
I've tried rebuilding "less" with --enable-termcap but that didn't seem to help.
Anyone else have the same problem? Any solutions?
[SOLVED]
bernarcher's suggestion to edit /etc/man_db.conf worked a treat:
This is caused by the new man_db package. The less pager must be defined with proper options in /etc/man_db.conf.
DEFINE pager less -Rs
Last edited by Painless (2009-03-03 21:23:06)
Offline
What is the result of echo $MANPAGER
Offline
This is caused by the new man_db package. The less pager must be defined with proper options in /etc/man_db.conf.
DEFINE pager less -Rs
To know or not to know ...
... the questions remain forever.
Offline
2 ways to fix it....
Add to .bashrc
export MANPAGER='/usr/bin/most -s'
Then log out/back in. Or edit /etc/man_db.conf and uncomment the line bernarcher mentioned and change 'less' to 'most'
EDIT: At least on my system it looks like /etc/man_db.conf needs the full path so it should be /usr/bin/most
Last edited by thefatprecious (2009-03-03 15:52:55)
ILoveCandy
Offline
2 ways to fix it....
Add to .bashrc
export MANPAGER='/usr/bin/most -s'
Then log out/back in. Or edit /etc/man_db.conf and uncomment the line bernarcher mentioned and change 'less' to 'most'
EDIT: At least on my system it looks like /etc/man_db.conf needs the full path so it should be /usr/bin/most
That's to use the pager 'most' with man. The discussion is on getting 'less' to work colored and with man, since it's a more featureful pager
Thanks anyways though.
Offline
My bad I guess I should have clarified....The TERMCAP entries don't work for me either. Using most is a workaround for me to have pretty colors not a fix for the issue......
ILoveCandy
Offline
You don't have the last groff package yet? Version 1.20.1-2 has a fix.
Otherwise just do the following which is equivalent : export GROFF_NO_SGR=1
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I have groff 1.20.1-2 installed and there still are no colors with less. Same result even with the env variable you suggested.
EDIT: Sorry, actually I was mistaken. You are correct, however it works only with the env variable. Thanks!
Last edited by thefatprecious (2009-03-03 17:46:36)
ILoveCandy
Offline
This is caused by the new man_db package. The less pager must be defined with proper options in /etc/man_db.conf.
DEFINE pager less -Rs
This worked perfectly for me. Thanks very much.
Offline
Can someone tell me what the difference between man and man_db is and why man was replaced by man_db?
Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!
Offline
The main technical difference is that man-db uses a Berkley DB backend instead of the flat text backend that man used. But for us, the main advantage is that it handles UTF-8 pages better.
Offline
The main technical difference is that man-db uses a Berkley DB backend instead of the flat text backend that man used. But for us, the main advantage is that it handles UTF-8 pages better.
Thanks a lot for the explanation.
Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!
Offline
I can't seem to get colors using "view" for my manpages. I just get lots of control characters. Does anyone else use view for their man pages?
Offline
The "view" problem has been solved. In my .bashrc:
I replaced the line:
export MANPAGER="col -b | view -c 'set ft=man nomod nolist' -"
with the line:
export MANPAGER="sh -c \"col -b | view -c 'set ft=man nomod nolist' -\""
Offline
Try the solution with /etc/man_db.conf
That worked for me with "most" a pager.
Coming closer and closer to the ultimate goal: replacing boring old Windows XP desktop with shiny new Arch KDE 4 desktop. ^^
Already registered? Your vote counts!
Offline
Slightly offtopic, but you could use this one-liner to tidy up the last remnants of the old man package:
locate -r whatis$ | grep /man/ | xargs rm
1000
Offline