On Linux, you could try the following MANPAGER settings . The second one needs bat.
MANPAGER="less -R --use-color -Dd+r -Du+b"
MANPAGER="sh -c 'col -bx | bat -l man -p'"
On Gentoo Linux, you could also try this, which needs app-text/manpager
(I didn't read the code of manpager, I guess it is just a wrapper of ...
tput is not working because it needs to know current terminal emulator from $TERM environment variable. When ~\.profile is reading, there's just no terminal emulator in use, so tput just can't produce any output.
It is possible to specify which terminal capability to use in tput by -T key. So this code will work:
LESS_TERMCAP_mb=$(tput -T ansi blink) # start ...
The manual states:
You may define your own less commands by creating a lesskey source
If the environment variable LESSKEYIN is set, less uses that as
the name of the lesskey source file. Otherwise, less looks in a
standard place for the lesskey source file: On Unix systems, less
looks for a lesskey file called "$XDG_CONFIG_HOME/lesskey"...