1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

Fix for xterm reportBackground query.

* lisp/term/xterm.el (terminal-init-xterm): Discard input before
querying background mode.

Fixes: debbugs:10959
This commit is contained in:
Chong Yidong 2012-06-16 17:56:15 +08:00
parent 6665a6fd19
commit 771e3eae1e
2 changed files with 6 additions and 0 deletions

View 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.

View 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) ?\]))