selection lost during selecting, iff selecting caused a scroll(up) at least once and then a new line of output happens
#!/bin/bash
#get some scrollback buffer via:
ls -laR / & jobpid="$!"; sleep 1; kill -9 "$jobpid"
echo '1. Now, start selecting by holding LMB and moving up past the window title which will (normally)cause it to scroll up'
echo '2. stop the above auto-scrolling by moving mouse into the window contents, before a new 'a' is echoed(by the below 'while'), while still holding LMB'
echo '3. keep holding LMB until a new 'a' line is echoed'
echo 'as soon as that happens, the entire selection is lost'
echo '(this issue only works if the action of selecting caused window scrolling at least once)'
#echo something every 3 seconds(C-c to stop):
while true; do echo "a"; sleep 3; done
This happens with xfce4-terminal
and gnome-terminal
.
local/gnome-terminal 3.32.2-1 (gnome)
local/xfce4-terminal 0.8.8.r7.g998eabc-1 (builtbydaddy xfce4)
Originally reported here: https://bugzilla.xfce.org/show_bug.cgi?id=15718
Tested on ArchLinux:
local/vte3-git 0.57.4.4576.68c8e340-1
that is commit 68c8e340 (HEAD -> makepkg, origin/master, origin/HEAD, master)
Couldn't test earlier versions than the following due to using different (non-meson?) build system:
local/vte3-git 0.57.0.4516.1817fb8f-1
Note: scroll on output is disabled (in xfce4-terminal
)