Hello,

This arrangement works for me on 5.7, but not 5.9:

export LESS_TERMCAP_mb=$(tput mb; tput AF 1)
export LESS_TERMCAP_md=$(tput md; tput AF 2)
export LESS_TERMCAP_mh=$(tput AF 5)
export LESS_TERMCAP_so=$(tput so; tput AF 3)
export LESS_TERMCAP_se=$(tput me)
export LESS_TERMCAP_us=$(tput us; tput AF 6)
export LESS_TERMCAP_ue=$(tput me)


$ printenv | fgrep -i less | sort
LESS=--LONG-PROMPT --ignore-case
LESS_TERMCAP_mb=ESC[5mESC[31m
LESS_TERMCAP_md=ESC[1mESC[32m
LESS_TERMCAP_mh=ESC[35m
LESS_TERMCAP_se=ESC[0m
LESS_TERMCAP_so=ESC[3mESC[33m
LESS_TERMCAP_ue=ESC[0m
LESS_TERMCAP_us=ESC[4mESC[36m
MANPAGER=less
PAGER=less
$ printenv TERM
screen                  # tmux


Adapted from:
http://unix.stackexchange.com/questions/119/colors-in-man-pages/147#147
http://unix.stackexchange.com/questions/108699/documentation-on-less-termcap-variables

tmux, lynx, vim, colorls, etc. all work fine on 5.9; but not less.

Do I need different tputs for this edition of terminfo?

Thanks,
-- 
Craig Skinner | http://linkd.in/yGqkv7

Reply via email to