New less 551 won't let me copy text with "--mouse" flag.

Ottavio Caruso ottavio2006-usenet2012 at yahoo.com
Tue Aug 18 18:30:14 UTC 2020


Hi, I am not sure f this is the right list or it should have been 
freebesd-questions at .

  % freebsd-version
12.1-RELEASE-p8

less in base:

% less --version
less 530 (POSIX regular expressions)

Before installing less from ports:

  % which less
/usr/bin/less

setenv LESS "-i -m +Gg"
setenv TERM xterm

As you know, old less 530 in base doesn't support scrolling down with 
the mouse, so I have installed less from ports.


  % /usr/local/bin/less --version
less 551 (PCRE regular expressions)

and I have updated my environment variables:

setenv PAGER /usr/local/bin/less
setenv LESS "--mouse --wheel-lines=3 -i -m +Gg"

I might have used wrong syntax here ^, but now, if I use less or man, I 
can scroll down, but I cannot copy text with the mouse. If I try, the 
screen will flash. If I revert to /usr/bin/less, I regain the capability 
or copying text but I lose the scroll down function.

As a term of comparison, I can use less with the mouse and scroll down 
in pretty much all other *BSD and Linux without specifying the "--mouse" 
flag.

Any help will be appreciated.



-- 
Ottavio Caruso



More information about the freebsd-ports mailing list