LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Man page colors (https://www.linuxquestions.org/questions/linux-newbie-8/man-page-colors-301475/)

daelomin 03-14-2005 11:02 AM

Man page colors
 
Hi everyone,

I am having problems with MAN : the output is formatted in very weird colors that prove unreadable on my background color.

I could change the background but it would just be simpler if I could specify no coloring whatsoever (say all in White)...

I do not have a .Xdefaults in my $HOME so it is not that...

Any other idea?

Thanks

apeekaboo 03-14-2005 12:09 PM

Check your $PAGER. You might have something specified which utilizes colors.
Change to something simple in ~/.bash_profile, like:
Code:

export PAGER='less -R'

daelomin 03-14-2005 01:59 PM

Hey!

Thanks for the answer but no, $PAGER is empty...

I still don't see why the blue colors for the titles in 'man ls' ...

*edited* Apologies for posting the same thread in the RedHat forum, I only realized I should post it there since it might be Distro-related but then I didnt know how to delete the current post. Anyway, my apologies.


daelomin 03-15-2005 02:54 PM

no one else? :)

Tinkster 03-15-2005 03:54 PM

Quote:

Originally posted by daelomin
Hey!

Thanks for the answer but no, $PAGER is empty...
Did you try SETTING it? :)

If it's empty the following applies
Quote:

from man man
Code:

      -P  pager
              Specify which pager to use.  This option  overrides
              the  MANPAGER  environment  variable, which in turn
              overrides the PAGER variable.  By default, man uses
              /usr/bin/less -is.



Cheers,
Tink

daelomin 03-16-2005 07:25 AM

I tried exporting it like apeekaboo suggested, but the -R option doesnt work...
so:

export PAGER='less'

and then calling : "man -P $PAGER ls " does use less as a pager but it doesnt solve MY problem which had to deal with the actually colors with which MAN displays the content of any manpage..

It's not the formatting of the page, it's the colors on it ! :)


All times are GMT -5. The time now is 03:06 PM.