Monday, March 16, 2020

Re: Mouse not working last 20% of screen

On Mon, Mar 16, 2020 at 05:41:55PM +0100, Tony Mechelynck wrote:
> On Mon, Mar 16, 2020 at 5:10 PM Kennedy, Marcus A.
> <Marcus.Kennedy@rocket.com> wrote:
> > 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?
>
> I don't know WHY this happens but I confirm THAT it happens in my
> Konsole terminal, version 18.12.3, where v:termresponse is
> ^[[>0;115;0c — clicking the mouse moves the cursor, but only if no
> farther than in virtual column 223. This is a _screen_ column and
> applies to any of the screen lines of a wrapped file line.

Check the 'ttymouse' setting. The "xterm" mouse protocol doesn't support
columns beyond 223.

I'm using gnome-terminal and my vim automatically detects this and sets
ttymouse to sgr, which doesn't have the 223-column limit.

Try manually forcing :set ttymouse=sgr, see if that helps.

Assuming it does: I don't know if vim can autodetect Konsole, given that
it self-reports as xterm 115. According to :help 'ttymouse', the sgr
protocol was added in xterm 277.

HTH,
Marius Gedminas
--
"question = (to) ? be : !be;" -- Shakespeare

--
--
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/20200316165731.6yd57lwkl3oslnwz%40blynas.

No comments: