[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/lisp/term xterm.el
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] emacs/lisp/term xterm.el |
Date: |
Sat, 06 Dec 2008 03:57:16 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Chong Yidong <cyd> 08/12/06 03:57:16
Modified files:
lisp/term : xterm.el
Log message:
(terminal-init-xterm): Discard pending input before reading a reply to
the terminal attributes query.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/term/xterm.el?cvsroot=emacs&r1=1.59&r2=1.60
Patches:
Index: xterm.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/term/xterm.el,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- xterm.el 30 Sep 2008 21:59:29 -0000 1.59
+++ xterm.el 6 Dec 2008 03:57:16 -0000 1.60
@@ -473,6 +473,9 @@
(let ((coding-system-for-read 'binary)
(chr nil)
(str nil))
+ ;; Pending input can be mistakenly returned by the calls to
+ ;; read-event below. Discard it.
+ (discard-input)
;; Try to find out the type of terminal by sending a "Secondary
;; Device Attributes (DA)" query.
(send-string-to-terminal "\e[>0c")
- [Emacs-diffs] emacs/lisp/term xterm.el,
Chong Yidong <=