Tuesday, March 17, 2020

Re: Mouse not working last 20% of screen

On Tue, Mar 17, 2020 at 6:57 AM Benjamin Esham <usenet@esham.io> wrote:
>
> Tony Mechelynck wrote:
>
> > On Mon, Mar 16, 2020 at 6:04 PM Tony Mechelynck
> > <antoine.mechelynck@gmail.com> wrote:
> >
> >> Update: manually setting ttymouse=sgr in konsole 18.12.3 makes it
> >> work, even though it only admits to xterm equivalent version 115,
> >> which would normally mean ttymouse=xterm2.
> >>
> >> Best rgards,
> >> Tony.
> >
> > OK, I'll add the following to my vimrc, but it is a hack, and not
> > guaranteed to work:
> >
> > au TermResponse *
> > \ if &ttym == 'xterm2' | set ttym=sgr | endif
> >
> > Best regards,
> > Tony.
>
> I don't suppose your terminal emulator sets $TERM_PROGRAM? (As far as I've
> been able to tell, this environment variable is a macOS-ism, but if you can
> use it it seems like it might solve your problem neatly.)
>
> Benjamin

No it doesn't. "set | less" at the bash prompt lists (among others)
all environment variables in alphabetical order, and the only one
whose name starts with T is TERM=xterm-256color

In a "real" xterm there are two of them, namely TERM=xterm and
TS1=$'\E7\E]2;%s@%s:%s\a\E]1;%s\a\E8' ; in a non-X console (e.g.
Ctrl-Alt-F2) it's just TERM=linux ; and in gnome-terminal (which I
rarely use) v:termresponse is ^[[>1;5002;0c ("xterm version 5002", no
kidding) and Vim, seeing that, sets ttymouse=sgr with no user
intervention (even if started with -u DEFAULTS).

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXs%2BciODQEmn7iA6MnvYsOfseJD52WpoUF_8ySKAc0gTow%40mail.gmail.com.

No comments: