Support SGR mouse tracking on terminal.

466 views
Skip to first unread message

mattn

unread,
Jul 13, 2012, 7:43:35 AM7/13/12
to vim...@googlegroups.com
Hi list.

I've received a patch to support SGR mouse tracking on terminal.

http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Mouse%20Tracking
https://groups.google.com/forum/#!topic/vim_use/lo6PLRUu2Gg

This works well on xterm patch 277 or later.

Currently, vim can't recognize column number of mouse event which is greater than 222. This SGR's patch make it possible.
If applied this patch, you can make sure ttymouse is set as 'sgr' on your xterm. And you can select columns greater than 222 with "set mouse=a".
With this mouse mode, vim will accept both "Normal (xterm2)" and "SGR 1006" styled mouse reporting. So this patch don't affect to former.

https://gist.github.com/2857753

This patch is written by Hayaki Saito us...@zuse.jp.
Please check.

Thanks.

BTW, It seems that vim_dev ML does not allow his e-mail address.

Bram Moolenaar

unread,
Jul 14, 2012, 3:08:38 PM7/14/12
to mattn, vim...@googlegroups.com
Thanks. I'll check it out.

> Thanks.
>
> BTW, It seems that vim_dev ML does not allow his e-mail address.

He is not subscribed?

--
I have a watch cat! Just break in and she'll watch.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages