Home > bashism, fun, linux, Uncategorized > Colorfull man pages

Colorfull man pages

Ubuntu server installation provides colored man pages – nifty 😉
This is what has to be done to get it working in a X session terminal:

sudo aptitude install most
sudo update-alternatives --config pager

Choose “most” from the list and test it with a man pagge “man test”.

Have fun . . .

[update] As always, bert nows more 😉 :
I have found a major and a minor flaw in using most as the man pager:

Major: I use the -X option for less (by putting them into the LESS env variable [1]). This does not clear the terminal on exit of less. Thus, you see the last viewed page of the manual. This is particular helpful when looking-up a command line option, so I can copy’n’paste the option to the command line after quitting less. I can’t find a similar option for most.

Minor: less shows the name of the manual page in the bottom prompt, while most just shows ‘*stdin*’.

Footnote [1]: For the curious reader, this is the content of my $LESS: -MSiRXF. Feel free to look them up in the manual.

Categories: bashism, fun, linux, Uncategorized Tags: ,
  1. bert
    July 8th, 2011 at 14:08 | #1

    Finally, greate, but setting MANPAGER to most should be sufficient, shouldn’t it.

  2. July 8th, 2011 at 14:18 | #2

    Yes.

  3. July 8th, 2011 at 14:20 | #3

    the question is – what else is handled by “pager” and now becomes more pretty with “most” as the default?? 😉

  4. July 8th, 2011 at 19:11 | #4

    yayyyyyyyyyyyyyy ^____^

  5. stefan
    July 11th, 2011 at 09:40 | #5

    Funky!

    @bert there are already people who didn’t know this 😉

  6. bert
    July 18th, 2011 at 20:25 | #6

    I have found a major and a minor flaw in using most as the man pager:

    Major: I use the -X option for less (by putting them into the LESS env variable [1]). This does not clear the terminal on exit of less. Thus, you see the last viewed page of the manual. This is particular helpful when looking-up a command line option, so I can copy’n’paste the option to the command line after quitting less. I can’t find a similar option for most.

    Minor: less shows the name of the manual page in the bottom prompt, while most just shows ‘*stdin*’.

    Footnote [1]: For the curious reader, this is the content of my $LESS: -MSiRXF. Feel free to look them up in the manual.

  7. August 30th, 2014 at 23:35 | #7

    There’s definately a lot to know about this topic.

    I love all of the points you have made.

  1. July 10th, 2011 at 21:00 | #1