Commit 56f37e53 authored by Chong Yidong's avatar Chong Yidong

(terminal-init-xterm): Discard pending input before reading a reply to

the terminal attributes query.
parent 91b07ee3
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment