If I do man bash inside of X, e.g., in xterm or mate-terminal, I get some words underlined.If I do man bash in a virtual terminal, I get those same words colored.Can I get the same coloring in X?What causes this difference in the behaviors of the two?
Different behavior of tty's vs pty's
tty;pty
If less is set as a viewer for man pages then you have opportunity to overwrite standard colors, with less special variables.Example from my settings:export LESS_TERMCAP_mb=$'\e[6m'          # begin blinkingexport LESS_TERMCAP_md=$'\e[34m'         # begin boldexport LESS_TERMCAP_us=$'\e[4;32m'       # begin underlineexport LESS_TERMCAP_so=$'\e[1;33;41m'    # begin standout-mode - info boxexport LESS_TERMCAP_me=$'\e[m'           # end modeexport LESS_TERMCAP_ue=$'\e[m'           # end underlineexport LESS_TERMCAP_se=$'\e[m'           # end standout-modeAdditionally you may need to setexport GROFF_NO_SGR=''due to some bug in new groff behaviour.I've checked in my linux box that if I set in console export LESS_TERMCAP_md=$'\e[4m'then instead of underlining (which is not possible under console) the code is indeed interpreted as light blue. 