shell - Colorize man pages (with `less` pager) not working in Cygwin MinTTY -


i've tried copy sort of color schemes try , colors in man pages -- example, most default. i've never been successful tmux man-page search highlighting highlight man pages, given less_termcap_* given in example.

see @ http://screencast.com/t/z4i9aeq0. bold section titles stay bold, never colored. missing?

here relevant part of .zshrc:

pager="less"  # colored man pages: # http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/ export less_termcap_mb=$'\e[01;31m'     # enter_blink_mode export less_termcap_md=$'\e[01;38;5;74m' # enter_bold_mode export less_termcap_so=$'\e[38;5;016m\e[48;5;220m' # enter_standout_mode export less_termcap_us=$'\e[04;38;5;146m' # enter_underline_mode export less_termcap_me=$'\e[0m'         # exit_attribute_mode export less_termcap_se=$'\e[0m'         # exit_standout_mode export less_termcap_ue=$'\e[0m'         # exit_underline_mode  # tailoring `less' less="--quit-at-eof --ignore-case --long-prompt --raw-control-chars" 

and here .minttyrc:

boldascolour=yes boldasfont=no font=consolas fontheight=10 rightclickaction=paste rows=43 scrollbacklines=100000 term=xterm-256color 

ps- has been asked on cygwin ml, did not answer.

including following in .bashrc worked me - export groff_no_sgr=1

explanation , idea found at: https://wiki.archlinux.org/index.php/man_page#if_less_doesn.27t_display_color_man_pages


Comments