From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Paris 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, 2 Aug 2010 17:36:18 -0400 Message-ID: <20100802213618.GA7767@psychosis.jim.sh> 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 1280785097 13238 80.91.229.12 (2 Aug 2010 21:38:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Aug 2010 21:38:17 +0000 (UTC) Cc: 6758@debbugs.gnu.org, Johan =?UTF-8?Q?Bockg=C3=A5rd?= To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 02 23:38:14 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-0002VM-DW for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 23:38:14 +0200 Original-Received: from localhost ([127.0.0.1]:39276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og2i3-0000Kf-64 for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Aug 2010 17:38:11 -0400 Original-Received: from [140.186.70.92] (port=59013 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Og2hu-0000IG-Vj for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Og2hs-000404-T8 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51511) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2hs-0003zz-QV for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 17:38:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Og2fy-00026Z-Co; Mon, 02 Aug 2010 17:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Paris 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:36: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.12807849578085 (code B ref 6758); Mon, 02 Aug 2010 21:36:02 +0000 Original-Received: (at 6758) by debbugs.gnu.org; 2 Aug 2010 21:35:57 +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 1Og2ft-00026M-3J for submit@debbugs.gnu.org; Mon, 02 Aug 2010 17:35:57 -0400 Original-Received: from jim.sh ([75.150.123.25] helo=psychosis.jim.sh) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2fr-00026G-3i for 6758@debbugs.gnu.org; Mon, 02 Aug 2010 17:35:55 -0400 Original-Received: from psychosis.jim.sh (localhost [127.0.0.1]) by psychosis.jim.sh (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o72LaJgE008583 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Aug 2010 17:36:19 -0400 Original-Received: (from jim@localhost) by psychosis.jim.sh (8.14.3/8.14.3/Submit) id o72LaIEs008582; Mon, 2 Aug 2010 17:36:18 -0400 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: clamav-milter 0.96 at psychosis X-Virus-Status: Clean X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 02 Aug 2010 17:36: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:39180 Archived-At: Andreas Schwab wrote: > 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). Ok, (read-char) can be replaced with (read-event nil nil 2). There may also need to be a (let (coding-system-for-read 'binary)) in there somewhere -- I'm really not familiar with emacs programming, this is mostly just based on other code I've found (like xt-mouse.el) -jim