Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I switched to tty I noticed manpages look different by using some color scheme. How to make it to gnome-terminal?

Update: Here is a solution, I found at Unix stackExchange site.

share|improve this question
    
This question is very vague. What are you asking? – jackweirdy Jun 26 '12 at 19:33
    
I guess what you are asking is coloured like pattern in normal gnome terminal. – atenz Jun 26 '12 at 20:48
up vote 6 down vote accepted

I didn't know it, but I found something here:
http://www.tuxarena.com/2012/04/tutorial-colored-man-pages-how-it-works/

Instructions from the above link:

Edit your .bashrc file and add the following lines:

export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode - red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode - bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode    
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode - yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode - cyan

Next, start a new terminal session or enter the command source ~./bashrc in your current terminal.

share|improve this answer
    
Thanks, this is what I was looking for. – nick Jun 27 '12 at 18:23

You can have coloured man pages using the following commands:

sudo apt-get install most
export PAGER="most"  

Now check your man pages by

man ls

enter image description here

share|improve this answer
    
If you only want to use most as the pager for man then you can alias this via alias man="man -P most". – Drew Noakes Sep 23 '14 at 22:59

One possible way would be a manual one by Going through the Edit menu of Gnome Terminal in Menu Bar , then In Profile Preferences as here in image. You can try and play around to suite your needs.

enter image description here

Another is a process explained here.Though explained for 11.04 version , check out its homepage for further info.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.