From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: read a reply from the terminal Date: Sun, 15 Jul 2007 20:19:03 +0300 Message-ID: References: <200707140242.l6E2gpBC015778@oogie-boogie.ics.uci.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1184519962 4946 80.91.229.12 (15 Jul 2007 17:19:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2007 17:19:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 15 19:19:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IA7kW-0005F3-3F for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 19:19:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IA7kV-0003vZ-Hd for ged-emacs-devel@m.gmane.org; Sun, 15 Jul 2007 13:19:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IA7kS-0003vU-3J for emacs-devel@gnu.org; Sun, 15 Jul 2007 13:19:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IA7kQ-0003vF-Df for emacs-devel@gnu.org; Sun, 15 Jul 2007 13:19:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IA7kQ-0003vC-8z for emacs-devel@gnu.org; Sun, 15 Jul 2007 13:19:06 -0400 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IA7kP-0001ff-SQ for emacs-devel@gnu.org; Sun, 15 Jul 2007 13:19:06 -0400 Original-Received: from HOME-C4E4A596F7 ([81.5.49.91]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id HGK26107 (AUTH halo1); Sun, 15 Jul 2007 20:19:12 +0300 (IDT) In-reply-to: (bojohan+news@dd.chalmers.se) X-detected-kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74830 Archived-At: > From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) > Date: Sun, 15 Jul 2007 15:49:01 +0200 > > Eli Zaretskii writes: > > >> From: Dan Nicolaescu > >> Date: Fri, 13 Jul 2007 19:42:51 -0700 > >> > >> I trying to do: (send-string-to-terminal "\e[>0c") and read the string > >> that the terminal sends back. Can this be done reliably in elisp? > > > > If you know exactly how many bytes will the response include, I think > > insert-file-contents should fit the bill. Doesn't it? > > How? How what? Sorry, I really don't understand the question. In any case, Stefan suggested a different solution which Dan decided to use.