In other news for Tue, Jan 19, 2021 at 09:14:59PM -0500, James McCoy has been
seen typing:
> On Tue, Jan 19, 2021 at 10:22:35AM +0100, Rens Houben wrote:
> The terminal sends <Esc>[I when focus comes back, which is what makes
> you leave insert mode (<Esc>) and show that popup ([I).
> If this were working correctly, you wouldn't have noticed a difference
> (as is the case in xterm), but there's something going on with the other
> terminals.
> Can you provide the package names and versions for the terminals that
> aren't working right?
gnome-terminal 3.38.1-2, mate-terminal 1.24.1-1 and xfce4-terminal
0.8.10-1 all exhibit this behaviour; eterm 0.9.6-6 did not, although
given that its last update was from 2018 I suspect it simply isn't
sending the focus events.
> Also, it would help if you ran the below command in each terminal
> (replacing <term> with the terminal name) and attached the resulting log
> for each.
> vim --cmd 'au FocusGained * call ch_log("f_in")' --cmd 'au FocusLost * call
> ch_log("f_out")' --cmd 'call ch_logfile("focus_<term>.log", "a")'
I've done so. There's a lot of garbled Escape codes at the end which
cause severe terminal weirdness when trying to cat the files, so I've
zipped them up. They can be retrieved at
https://chingshih.systemec.nl/focusevents.zip
> You can add the below snippet to your vimrc to disable this
> functionality:
Appreciated muchly. Thanks!
> Cheers,
> --
> James
> GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB