Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
56f37e53
Commit
56f37e53
authored
Dec 06, 2008
by
Chong Yidong
Browse files
(terminal-init-xterm): Discard pending input before reading a reply to
the terminal attributes query.
parent
91b07ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lisp/term/xterm.el
lisp/term/xterm.el
+3
-0
No files found.
lisp/term/xterm.el
View file @
56f37e53
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment