(comint-read-noecho): Use `read-char-exclusive' instead of `read-char'.
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Nov 1994 01:30:16 +0000 (01:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Nov 1994 01:30:16 +0000 (01:30 +0000)
lisp/comint.el

index 3cb4231..3c5a3db 100644 (file)
@@ -1383,7 +1383,8 @@ applications."
       (if stars
           (message "%s%s" prompt (make-string (length ans) ?*))
         (message prompt))
-      (setq c (read-char))
+      ;; Use this instead of `read-char' to avoid "Non-character input-event".
+      (setq c (read-char-exclusive))
       (cond ((= c ?\C-g)
              ;; This function may get called from a process filter, where
              ;; inhibit-quit is set.  In later versions of emacs read-char