George Nachman wrote:
> I'm the maintainer for a terminal emulator. I recently added
> support relatively new protocols for mouse reporting modes that allow rows
> and columns greater than 223. I would like to test my change with vim, but
> I'm not sure if it supports it, or if it does, how to get into that mode.
>
> For xterm, the protocol is documented here:
> http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt (search for "Mouse
> Tracking" to find the relevant section). The escape code to enter the new
> mode is ^[[?1005h.
> For urxvt, I can't find a description of their protocol outside the source
> code :( and this entry in the changelog:
>
>
> - implement xterm's horribly broken 1005 mouse reporting mode,
> and an alternative 1015 mode that works in non-utf-8 locales
> and has fewer limitations.
>
> The escape code to enter this mode is ^[[?1015h
>
> I see the "ttymouse" command takes an xterm2 value, but that appears to be
> something other than the new ^[[?1005h mode.
>
> As far as I can tell there isn't (yet?) a termcap entry for these.
There are no termcap entries about the mouse handling. This is hard
coded in the Vim sources. Have a look at src/term.c, search for
mouse_col.
I thought there was a todo entry to support more columns for xterm, but
I can't find it now.
If you can make a patch, that would be welcome. Do try to make it work
for everybody. If it's a mode switch then that is very tricky, because
it has to be restored when Vim exits (and when it crashes...?).
Everything depends on the name of the terminal, but that often makes
users set $TERM to xterm even though it's not actually an xterm and then
later something causes a problem. Perhaps we need a separate option for
this. But hopefully automatic detection works.
--
hundred-and-one symptoms of being an internet addict:
226. You sit down at the computer right after dinner and your spouse
says "See you in the morning."
/// Bram Moolenaar -- [email protected] -- 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 ///
--
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