Hello, Bram

By recent patch 7.3.632, SGR 1006 style mouse reporting is supported.
But some people pointed that "set ttymouse=sgr" in .vimrc do not works well.

The reason is that;
In the terminal auto recognition process (with +termresponse), vim checks 
DA2(Device Attribute 2) response.
Some terminal emulators report patch level numbers that is less than 277.
So it reset ttymouse to "xterm2" automatically although ttymouse is set as 
"sgr" already.

Attached patch(fix-sgrmouse-autodetection.diff) fixes it.
If ttymouse is set as "sgr" already, ttymouse auto recognition process will not 
reset ttymouse option with it.


In addition, "has('mouse_urxvt')" and "has('mouse_sgr')" support  for vimscript 
seems to be lacked. 
The second patch(support-has_urxvt-and-has_sgr.diff) fixes it.

Please check.

Regards.

---
Hayaki Saito

-- 
You received this message from the "vim_dev" 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

Attachment: fix-sgrmouse-autodetection.diff
Description: Binary data

Attachment: support-has_urxvt-and-has_sgr.diff
Description: Binary data

Raspunde prin e-mail lui