From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#10642: xt-mouse: Support extended coordinates Date: Sat, 14 Jul 2012 23:46:35 +0800 Message-ID: <87obni8hwk.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342280844 13685 80.91.229.3 (14 Jul 2012 15:47:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jul 2012 15:47:24 +0000 (UTC) Cc: 10642@debbugs.gnu.org To: Egmont Koblinger Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 14 17:47:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sq4Z1-000740-90 for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2012 17:47:23 +0200 Original-Received: from localhost ([::1]:58023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq4Z0-00067a-9o for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jul 2012 11:47:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq4Yx-000679-Uj for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 11:47:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sq4Yw-0001mD-C5 for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 11:47:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sq4Yw-0001m4-8l for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 11:47:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sq4eT-00034n-Oj for bug-gnu-emacs@gnu.org; Sat, 14 Jul 2012 11:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jul 2012 15:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10642 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10642-submit@debbugs.gnu.org id=B10642.134228114911774 (code B ref 10642); Sat, 14 Jul 2012 15:53:01 +0000 Original-Received: (at 10642) by debbugs.gnu.org; 14 Jul 2012 15:52:29 +0000 Original-Received: from localhost ([127.0.0.1]:41284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sq4dw-00033r-Iz for submit@debbugs.gnu.org; Sat, 14 Jul 2012 11:52:29 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:34635) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sq4dv-00033k-3I for 10642@debbugs.gnu.org; Sat, 14 Jul 2012 11:52:27 -0400 Original-Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:33031 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Sq4YL-00063S-Sz; Sat, 14 Jul 2012 11:46:42 -0400 In-Reply-To: (Egmont Koblinger's message of "Sun, 29 Jan 2012 17:27:43 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61940 Archived-At: Egmont Koblinger writes: > When running in terminal, Emacs only supports mouse clicks up to > column or row 223, due to a limitation in the original mouse protocol. > However, there is an extension (well, unfortunately, there are a > couple of extensions) to overcome this limit. > > This request is hereby for emacs to implement one of them, so that > mouse click works on arbitrary coordinates. Thanks; the detailed information in your report was very useful. I've implemented the 1006 protocol handling, and committed it to trunk. The code assumes that if the terminal does not support 1006 mode, sending the \e[?1006h sequence is a no-op, and mouse click events are received using the old protocol. We look for both \e[M and \e[< events and handle them. This seems to work on XTerms supporting 1006 mode (tested with xterm-281) as well as older ttys (tested with xterm-271 and xfce4-terminal 0.4.8).