bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6758: 23.2; xterm.el: please provide an option to not discard input


From: Andreas Schwab
Subject: bug#6758: 23.2; xterm.el: please provide an option to not discard input in terminal-init-xterm
Date: Mon, 02 Aug 2010 23:27:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Jim Paris <jim@jtan.com> writes:

> +    ;; The reply should be of the form: \e ] 11 ; rgb: NUMBER1 / NUMBER2 / 
> NUMBER3 \e \\
> +    (while (not (equal (setq chr (read-char)) ?\\))
> +      (setq str (concat str (string chr))))

At least this loop needs to have a timeout, in case the terminator
character gets lost for whatever reason.

> +    ;; The reply should be of the form: \e [ > NUMBER1 ; NUMBER2 ; NUMBER3 c
> +    (while (not (equal (setq chr (read-char)) ?c))
> +      (setq str (concat str (string chr))))

Likewise.  (It isn't all that hard to type ESC [ > by accident).

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]