* xt-mouse.el: Implement extended mouse coordinates.
commit63408057e7b8f8f9e04fa689117c75b498406daf
authorChong Yidong <cyd@gnu.org>
Sat, 14 Jul 2012 15:40:12 +0000 (14 23:40 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 14 Jul 2012 15:40:12 +0000 (14 23:40 +0800)
treeabcfef7f0c68d7591dd5b5043844018c23c9cd16
parent28ca98ac5218a3a14ae57f425ac226fc8fc0f6e4
* xt-mouse.el: Implement extended mouse coordinates.
(xterm-mouse-translate): Move code into xterm-mouse-translate-1.
(xterm-mouse-translate-extended, xterm-mouse-translate-1)
(xterm-mouse--read-event-sequence-1000)
(xterm-mouse--read-event-sequence-1006): New functions.  For old
mouse protocol, handle M-mouse-X events correctly.
(xterm-mouse-event): New arg specifying mouse protocol.
(turn-on-xterm-mouse-tracking-on-terminal)
(turn-off-xterm-mouse-tracking-on-terminal): Send DEC 1006
sequence to toggle extended coordinates on newer XTerms.  This
appears to be harmless on terminals which do not support this.

Fixes: debbugs:10642
lisp/ChangeLog
lisp/xt-mouse.el