On 2016-08-08 Mon 13:33 PM |, Philip Guenther wrote:
> 
> 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
[snip]
> uses terminfo instead of termcap
> 

Thanks Philip for the reminder less was replaced.

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

I've been fiddling about a bit....

In the meantime (for a quick hack), this gets things colourised:


$ printenv | fgrep -i less
PAGER=less
LESS=--LONG-PROMPT --ignore-case
MANPAGER=less
$ printenv TERM
screen
$ type man
man is an alias for 'TERM=xterm-pcolor; man'


WARNING:- it's fucking fruity. Lemons & limes squirting in to the eyes.

Inspired by this: http://stackoverflow.com/a/1257467

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

Reply via email to