From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: scm_shell in gui Date: Tue, 04 Jul 2006 09:28:54 +0200 Organization: LAAS-CNRS Message-ID: <87sllh4ymh.fsf@laas.fr> References: <44A9428E.2000603@fastmail.fm> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1151998199 31451 80.91.229.2 (4 Jul 2006 07:29:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 07:29:59 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 04 09:29:54 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxfLd-00027z-44 for guile-user@m.gmane.org; Tue, 04 Jul 2006 09:29:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxfLc-0000c2-Ji for guile-user@m.gmane.org; Tue, 04 Jul 2006 03:29:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FxfLX-0000a1-KS for guile-user@gnu.org; Tue, 04 Jul 2006 03:29:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FxfLU-0000Zp-U7 for guile-user@gnu.org; Tue, 04 Jul 2006 03:29:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxfLU-0000Zm-Qn for guile-user@gnu.org; Tue, 04 Jul 2006 03:29:20 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FxfZ7-00019A-De for guile-user@gnu.org; Tue, 04 Jul 2006 03:43:25 -0400 Original-Received: by laas.laas.fr (8.13.7/8.13.4) with SMTP id k647T4s0016367; Tue, 4 Jul 2006 09:29:10 +0200 (CEST) Original-To: Jonathan Wilson X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 16 Messidor an 214 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Jonathan Wilson , guile-user@gnu.org In-Reply-To: <44A9428E.2000603@fastmail.fm> (Jonathan Wilson's message of "Mon, 03 Jul 2006 11:15:10 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5395 Archived-At: Hi, Jonathan Wilson writes: > Is it possible to call scm_shell with different stdin and stdout? The > primary purpose of this that I can see would be to run a guile shell > inside a text area of a gui or something like that. I guess you can simply rebind the input/output ports: (set-current-input-port the-gui-input-port) (set-current-output-port the-gui-output-port) (set-current-error-port the-gui-error-port) So you need the GUI toolkit to provide you with appropriate port implementations in the first place (I don't know for sure but I guess `guile-gtk' and `guile-gnome' provide a port abstraction for text-based widgets). Thanks, Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user