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

Previous Next

Package: emacs;

Reported by: Jim Paris <jim <at> jtan.com>

Date: Thu, 29 Jul 2010 20:32:02 UTC

Severity: normal

Merged with 8482, 11129

Found in versions 23.2, 23.4

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jim Paris <jim <at> jtan.com>
Cc: 6758 <at> debbugs.gnu.org, Johan, Stefan Monnier <monnier <at> iro.umontreal.ca>, ård <bojohan <at> gnu.org>
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
Jim Paris <jim <at> 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 <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 12 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.