[Bug 248772] sysutils/less: option "--mouse" breaks selecting/copying text in xterm.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 20 08:54:26 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248772
Bug ID: 248772
Summary: sysutils/less: option "--mouse" breaks
selecting/copying text in xterm.
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: ottavio2006-usenet2012 at yahoo.com
CC: jharris at widomaker.com
Flags: maintainer-feedback?(jharris at widomaker.com)
CC: jharris at widomaker.com
% uname -a
FreeBSD FreeBSD 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC amd64
I have installed less from ports:
% /usr/local/bin/less --version
less 551 (PCRE regular expressions)
Launching less with the "--mouse" option prevents selecting and copying text in
xterm compliant terminals by the usual left-down-clicking.
How to replicate:
1) Install less from ports
2) /usr/local/bin/less /var/log/messages.
Select a block of text by left-down-clicking: this work
3) /usr/local/bin/less --mouse /var/log/messages
Select a block of text by left-down-clicking: doesn't work.
Workaround: selecting a block of text by [SHIFT] + left-down-clicking: works,
but it is not expected behaviour.
Same thing happens if $PAGER is set to "/usr/local/bin/less --mouse".
My environment:
% setenv
USER=oc
LOGNAME=oc
HOME=/home/oc
SHELL=/bin/tcsh
BLOCKSIZE=K
MAIL=/var/mail/oc
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/oc/bin
TERM=xterm
HOSTTYPE=FreeBSD
VENDOR=amd
OSTYPE=FreeBSD
MACHTYPE=x86_64
SHLVL=1
PWD=/home/oc
GROUP=oc
HOST=FreeBSD
EDITOR=vi
PAGER=less
LESS=-i -m +Gg
Resetting $LESS to null doesn't solve the issue.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list