]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix for xterm reportBackground query.
authorChong Yidong <cyd@gnu.org>
Sat, 16 Jun 2012 09:56:15 +0000 (17:56 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 16 Jun 2012 09:56:15 +0000 (17:56 +0800)
* lisp/term/xterm.el (terminal-init-xterm): Discard input before
querying background mode.

Fixes: debbugs:10959
lisp/ChangeLog
lisp/term/xterm.el

index 6e78f41e6a76fdf8c225d0c1c9580bfed6df174a..609dcb117b4dc73bf01c151211d1431006594804 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-16  Chong Yidong  <cyd@gnu.org>
+
+       * term/xterm.el (terminal-init-xterm): Discard input before
+       querying background mode (Bug#10959).
+
 2012-06-16  Stefan Merten  <smerten@oekonux.de>
 
        * textmodes/rst.el: Added and corrected some comments.
index 51e5aa5796d04ef8bc194d774aa34d13fa17e076..28fb9da0b9dbfd8e20e49aff60fa3710347b8c6e 100644 (file)
@@ -539,6 +539,7 @@ The relevant features are:
                 (and (memq 'reportBackground tocheck-capabilities)
                      version
                      (>= version 242)))
+       (discard-input)
         (send-string-to-terminal "\e]11;?\e\\")
         (when (and (equal (read-event nil nil 2) ?\e)
                    (equal (read-event nil nil 2) ?\]))