From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87r5im11u9.fsf@psychosis.jim.sh> <20100802205959.GA1974@psychosis.jim.sh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1280785117 13306 80.91.229.12 (2 Aug 2010 21:38:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 21:38:37 +0000 (UTC) Cc: 6758@debbugs.gnu.org, Johan@debbugs.gnu.org, =?UTF-8?Q?=C3=A5rd?= To: Jim Paris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 23:38:34 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2i5-0002VL-De for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 23:38:33 +0200 Original-Received: from localhost ([127.0.0.1]:39273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og2i2-0000KD-Df for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 17:38:10 -0400 Original-Received: from [140.186.70.92] (port=59011 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og2hu-0000I6-Nc for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Og2ht-00040H-HS for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51513) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2ht-00040D-Es for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Og2YE-00022w-8t; Mon, 02 Aug 2010 17:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6758 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6758-submit@debbugs.gnu.org id=B6758.12807844457858 (code B ref 6758); Mon, 02 Aug 2010 21:28:02 +0000 Original-Received: (at 6758) by debbugs.gnu.org; 2 Aug 2010 21:27:25 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2Xc-00022h-MX for submit@debbugs.gnu.org; Mon, 02 Aug 2010 17:27:25 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2Xa-00022c-Sn for 6758@debbugs.gnu.org; Mon, 02 Aug 2010 17:27:23 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 6ACF11C002A7; Mon, 2 Aug 2010 23:27:46 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-106-57.dynamic.mnet-online.de [88.217.106.57]) by mail.mnet-online.de (Postfix) with ESMTP id 3DFF21C00197; Mon, 2 Aug 2010 23:27:46 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id E2797CA297; Mon, 2 Aug 2010 23:27:45 +0200 (CEST) X-Yow: Hold the MAYO & pass the COSMIC AWARENESS... In-Reply-To: <20100802205959.GA1974@psychosis.jim.sh> (Jim Paris's message of "Mon, 2 Aug 2010 16:59:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 02 Aug 2010 17:28:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39181 Archived-At: Jim Paris 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."