Subject: bug#6758: 23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm

From: Stefan Monnier <[email-masked]>
Date: Sat, 11 Sep 2010 16:08:38 +0200

> Any thoughts on this patch?
> I've found further problems with doing aynchronous terminal queries:
> minibuffer prompts get aborted by the xterm response.  For example,
> when opening up a large file:

> 1) Emacs loads and sends "\e[>0c"
> 2) Emacs prints the "File x is large (123MB), really open? (y or n)" prompt
> 3) Xterm sends the "\e[>0;253;0c" response, aborting the prompt

Indeed.  But this one is "easy": y-or-n-p should use read-key rather
than read-event, so that input-decode-map will be obeyed.  Of course,
that probably requires moving y-or-n-p from C to Elisp.

        Stefan