Joined: 03 Jul 2002
Location: Manchester, England
|Posted: Tue Feb 11, 2003 6:04 pm Post subject: Displaying man pages properly in xman and mc
|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
or mc displays it as
you have this problem. The heading should be displayed in bold as so:
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:
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!