Siduction Forum
Siduction Forum => Software - Support => Topic started by: jyp on 2020/09/18, 21:39:49
-
There is color in man pages but, dark red over black bg is not easy to read.
After googling a lot, nothing suggested had any effect.
The Arch Linux Wiki and many other web pages had instructions but no result.
Most referred to LESS_TERMCAP variable.
I tried to export LESS_TERMCAP data in ~/.bashrc with no effect at all.
Also tried to find out the configuration file for the color setup, but didn't find anything.
Any clue would be welcome.
Thanks
-
There is color in man pages but, dark red over black bg is not easy to read.
After googling a lot, nothing suggested had any effect.
The Arch Linux Wiki and many other web pages had instructions but no result.
Most referred to LESS_TERMCAP variable.
I tried to export LESS_TERMCAP data in ~/.bashrc with no effect at all.
Also tried to find out the configuration file for the color setup, but didn't find anything.
Any clue would be welcome.
Thanks
You should add this code in ~/.bashrc
(After adding the following code, you must reload the ~/.bashrc file, using the command source .bashrc in a terminal)
# Less Colors for MAN Pages
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;35m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;31m") \
man "$@"
}
export MANPAGER='less -s -M +Gg'
Graphical example:
(https://i.imgur.com/PK3scpD.png)
See also:
- Color output in console - ArchWiki (https://wiki.archlinux.org/index.php/Color_output_in_console#man)
- less - Colors in Man Pages - Unix & Linux Stack Exchange (https://unix.stackexchange.com/questions/119/colors-in-man-pages)
Cheers!! ;)
-
Thanks a lot. Problem solved.
There was snippets of code missing from my research on google.
Like <env \>
and
<export MANPAGER= ...>
-
Thanks a lot. Problem solved.
[...]
You're welcome!! ;)
Cheers! 8)