Professional Web Applications Themes

Change color of key words in MAN pages - Linux / Unix Administration

When viewing the man pages of any command on a Linux OS telnetted using X Windows, the colors seem to be messed up. When trying to view the parameters of a man page such as: man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-S section_list] [section] name ... They are showing up as a bright yellow and very hard to read. I have to view the man page by creating a temporary file: man <command> | col -b > <command>.mantxt I looked at the config file for the man command (/etc/man.config), but I don't see ...

  1. #1

    Default Change color of key words in MAN pages

    When viewing the man pages of any command on a Linux OS telnetted using
    X Windows, the colors seem to be messed up. When trying to view the
    parameters of a man page such as:
    man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C
    config_file]
    [-M pathlist] [-P pager] [-S section_list] [section] name ...

    They are showing up as a bright yellow and very hard to read. I have
    to view the man page by creating a temporary file: man <command> | col
    -b > <command>.mantxt

    I looked at the config file for the man command (/etc/man.config), but
    I don't see any color references being mentioned. How can I change the
    default colors the man command uses when displaying a reference?

    *PS - Even if I use putty to login to the server, the manual pages
    still have weird colors.

    adam.petrie@gmail.com Guest

  2. #2

    Default Re: Change color of key words in MAN pages

    On 25 Aug 2005 12:40:13 -0700, com wrote: 

    Please read http://www.catb.org/~esr/faqs/smart-questions.html
    it would have been nice to give us a man page example to check and which linux.

    Guessing you have not set the TERM terminal environment variable.

    Guessing you can turn off color in /etc/man.config

    Bit Guest

  3. #3

    Default Re: Change color of key words in MAN pages

    Bit Twister <com> wrote: [/ref]
     

    don't bother (most of the people recommending it need more help than that ;-)
     

    it doesn't matter (they're all based on groff).
     

    that's irrelevant for this case - it's hardcoded grotty (well chosen name)
     

    finally.

    man grotty


    --
    Thomas E. ey
    http://invisible-island.net
    ftp://invisible-island.net
    Thomas Guest

  4. #4

    Default Re: Change color of key words in MAN pages

    On Thu, 25 Aug 2005 23:44:33 -0000, Thomas ey wrote: 
    >
    > don't bother (most of the people recommending it need more help than that ;-)[/ref]

    But you would be supprised how knowing what linux and version can help.
     
    >
    > it doesn't matter (they're all based on groff).

    >
    > that's irrelevant for this case[/ref]

    I don't know, I would have thought using xterm would help.
     
    >
    > finally.
    >
    > man grotty[/ref]

    But in Mandriva 2006 /etc/man.config, we see
    # If you have a new troff (version 1.18.1?) and its colored output
    # causes problems, add the -c option to TROFF, NROFF, JNROFF.

    Then again your can override the colors with .Xresources if using
    xterm.
    Bit Guest

  5. #5

    Default Re: Change color of key words in MAN pages

    I do have a .Xresources in my .profile as the term is set to xterm. I
    tried renaming it to see if that was causing the problem. After going
    back in, sure enough, the colors looked different. So, at least now I
    now what is causing the difference in the color schemes. All I have to
    do is figure out what line(s) is/are causing the problem.

    adam.petrie@gmail.com Guest

  6. #6

    Default Re: Change color of key words in MAN pages

    On 25 Aug 2005 12:40:13 -0700, com
    <com> wrote: 
    It might either your terminal or your $PAGER that is colorizing bold and
    underlined(italic) text.


    --
    Knowledge, sir, should be free to all!
    -- Harry Mudd, "I, Mudd", stardate 4513.3
    Bill Guest

Similar Threads

  1. Background color of words in PDF
    By Hrishikesh_Tamhankar@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 4
    Last Post: December 5th, 07:07 AM
  2. InDesign doc displays color differentlyin two pages (same color used on both)
    By Joseph Chamberlain in forum Adobe Indesign Macintosh
    Replies: 3
    Last Post: September 12th, 10:56 PM
  3. Color picker does not change foreground color fill
    By Thomas_J._Tucker@adobeforums.com in forum Adobe Photoshop Elements
    Replies: 3
    Last Post: October 5th, 05:11 PM
  4. Getting man pages in color
    By Micha Feigin in forum Debian
    Replies: 3
    Last Post: July 30th, 10:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139