Currently, less can be configured to print manpages, etc. in color using the LESS_TERMCAP_xx environment variables, e.g.:
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;204m' # begin standout-mode - info/highlight
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[01;32m' # begin underline
It would be really nice if moar supported these as well so that it could be swapped with less without any need to modify the existing configuration.
Currently,
lesscan be configured to print manpages, etc. in color using theLESS_TERMCAP_xxenvironment variables, e.g.:It would be really nice if moar supported these as well so that it could be swapped with less without any need to modify the existing configuration.