GNU bug report logs - #6594
23.2; xterm-mouse-mode bug

Previous Next

Package: emacs;

Reported by: Ilya Tatar <ilya.tatar <at> oracle.com>

Date: Fri, 9 Jul 2010 17:54:01 UTC

Severity: normal

Merged with 8106

Found in versions 23.2, 23.3

Done: Andreas Schwab <schwab <at> linux-m68k.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Langton, Asher" <langton2 <at> llnl.gov>
To: "6594 <at> debbugs.gnu.org" <6594 <at> debbugs.gnu.org>
Subject: bug#6594: <no subject>
Date: Mon, 25 Jul 2011 15:23:52 -0700
I looked at this a little more, and on my systems the value of c jumps to
0x8000000 around the 94th column. I don't know much about the internals of
emacs nor what the valid character values are here, but this works for me
on both Linux and OSX:

;; read xterm sequences above ascii 127 (#x7f)
(defun xterm-mouse-event-read ()
  (let ((c (read-char)))
    (cond ((and (> c #x3FFF80) (< c #x3FFFFF))
           (+ 128 (- c #x3FFF80)))
          ((>= c #x8000000)
           (+ 128 (- c #x8000000)))
          (t c))))





-Asher





This bug report was last modified 13 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.