1755021 Members
4655 Online
108828 Solutions
New Discussion юеВ

Man page question

 
dictum9
Super Advisor

Man page question


This is on 11x
How do I turn off that annoying inverse-color highlighting of key words when I run the man page on a command?

What package does it use, nroff, troff, groff? Can I use some option with man turn highlighting off?
8 REPLIES 8
Sanjay_6
Honored Contributor

Re: Man page question

Hi,

you can try col -b,

# man vi |col -b |more

Hope this helps.

regds
Rick Garland
Honored Contributor

Re: Man page question

With the 'col -b' switch you can send the man page(s) to printer and it will be clean as well
- no inverse type...
OldSchool
Honored Contributor

Re: Man page question

You can do either of the following in your profile:

export PAGER=pg (changes program used to paginate output to pg)

or

export PAGER="col -b | more"

dictum9
Super Advisor

Re: Man page question

Thank you. I used

export PAGER="col -b | less"

Bill Hassell
Honored Contributor

Re: Man page question

Here's a way to eliminate extra blank lines, eliminate the "Hewlett-Packard" page footer and drop the fancy fonts:

man \
| grep -v ' Hewlett-Packard Company' \
| col -b \
| ssp


Bill Hassell, sysadmin
Muthukumar_5
Honored Contributor

Re: Man page question

You can use col -b to remove all formatting with *roff.

Simply as,

# man | col -b | more

will give what you want.

-Muthu
Easy to suggest when don't know about the problem!
RAC_1
Honored Contributor

Re: Man page question

I use it as follows.

man ├в something├в | col ├в b | ssp | expand
There is no substitute to HARDWORK
Arunvijai_4
Honored Contributor

Re: Man page question

You can use col -b, # man man |col -b

If the -b option is given, col assumes that the output device in use is not capable of backspacing. In this case, if two or more characters are to appear in the same place, only the last one read is output.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"