Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Displaying man pages properly in xman and mc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ebichu
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 231
Location: Manchester, England

PostPosted: Tue Feb 11, 2003 6:04 pm    Post subject: Displaying man pages properly in xman and mc Reply with quote

If you display man pages with xman or with Midnight Commander (mc), you may see that the displayed man pages look a bit strange.

If xman displays the start of a man page as

1mNAME0m

or mc displays it as

.1mNAME.0m

you have this problem. The heading should be displayed in bold as so:

NAME

The workaround is to set the environment variable GROFF_NO_SGR. Set it to anything you like. A good place to set it is in a file in the /etc/env.d directory. To do this, create a file /etc/env.d/99sgr containing the following:
Code:
GROFF_NO_SGR=1

Then run env-update. You need to be a superuser to do all that.

The GROFF_NO_SGR variable will be set in any new login shells and the problem should go away. This assumes that the environment settings are read in properly when you log in, which does not always seem to be the case when logging in from an X11 display manager. However, that's a separate problem, hopefully dealt with elsewhere.
_________________
Ebichu wa chiizu ga daisuki dechu!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum