On Mon, Aug 8, 2016 at 12:44 PM, Craig Skinner <[email protected]> wrote:
> 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)
...
> tmux, lynx, vim, colorls, etc. all work fine on 5.9; but not less.
>
> Do I need different tputs for this edition of terminfo?

You need to find a way that doesn't use the insane LESS_TERMCAP_*
variables.  They vanished from the less in OpenBSD in this commit:
------
revision 1.18
date: 2015/11/05 22:08:44;  author: nicm;  state: Exp;  lines: +238
-1959;  commitid: yKv9Ck9ZDgwWTRTo;
Replace less with the cleaned-up fork of less 458 maintained by Garrett
D'Amore at https://github.com/gdamore/less-fork. This has significantly
less portability goop, has a tidied up code style, uses terminfo instead
of termcap, and is has stricter POSIX compliance.

Many of our local changes have been accepted upstream: substantial
remaining local changes are code to read help files from /usr/share
rather than compiling them in, man page and help improvements, and some
tweaks to the default options.

Review and testing by millert, ok deraadt
------

You can probably emulate this by defining your own terminfo entry
under ~/.terminfo/ with the desired overrides.


Philip Guenther

Reply via email to