Monday, March 16, 2020

Re: Mouse not working last 20% of screen

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.

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.
>
> On Mon, Mar 16, 2020 at 5:57 PM Tony Mechelynck
> <antoine.mechelynck@gmail.com> wrote:
> >
> > On Mon, Mar 16, 2020 at 5:49 PM Gary Johnson <garyjohn@spocom.com> wrote:
> > >
> > > On 2020-03-16, Kennedy, Marcus A. wrote:
> > > > Hello,
> > > >
> > > > This issue has been going on for about 6-8 years and on multiple systems. I cannot
> > > > use the mouse when it is in the last 20% of the screen (no click, scroll, select, etc).
> > > > I'm using Slackware 14.2 with the stock versions of KDE, Konsole, and vim.
> > > >
> > > > I attempted mouse operations on the right side of the screen with pico and it works.
> > > >
> > > > Anyone have any ideas as to why this is happening?
> > >
> > > Try
> > >
> > > set ttymouse=sgr
> > >
> > > See
> > >
> > > :help 'ttymouse'
> > >
> > > HTH,
> > > Gary
> >
> > Yeah, sgr mouse will be set if an xterm (or pseudo-xterm) version is
> > >= 277 (per the middle number in v:termresponse). Since my konsole
> > pretends to be xterm version 115, Vim does _not_ recognize it as
> > sgr-capable. My "real" xterm, OTOH, is version 330, so there it would
> > work even if 'columns' were higher.
> >
> > Without sgr capability, an xterm only "sees" the mouse if no farther
> > right than column 223.
> >
> > 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/CAJkCKXut7B%2BQ3nBMzYaPsZYkpBVovVf7a8bEOBbsgn7FmaHsMA%40mail.gmail.com.

No comments:

Post a Comment