Monday, April 29, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 4727  / 2 Years ago, thu, october 6, 2022, 6:29:52

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.


More From » gnome-terminal

 Answers
0

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.


[#37261] Thursday, October 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ateact

Total Points: 176
Total Questions: 130
Total Answers: 122

Location: Egypt
Member since Sun, Apr 23, 2023
1 Year ago
;