* lisp/term/xterm.el (terminal-init-xterm): Discard input before
querying background mode.
Fixes: debbugs:10959
+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.
(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) ?\]))