From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jon Wilson Newsgroups: gmane.lisp.guile.user Subject: Re: scm_shell in gui Date: Tue, 04 Jul 2006 10:44:53 -0500 Message-ID: <44AA8CF5.3010409@fastmail.fm> References: <44A9428E.2000603@fastmail.fm> <87sllh4ymh.fsf@laas.fr> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: sea.gmane.org 1152028110 1465 80.91.229.2 (4 Jul 2006 15:48:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 15:48:30 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 04 17:48:21 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 1Fxn7m-0000YJ-6G for guile-user@m.gmane.org; Tue, 04 Jul 2006 17:47:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxn7l-0001U2-GR for guile-user@m.gmane.org; Tue, 04 Jul 2006 11:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fxn7g-0001Tf-5l for guile-user@gnu.org; Tue, 04 Jul 2006 11:47:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fxn7e-0001TN-Mn for guile-user@gnu.org; Tue, 04 Jul 2006 11:47:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fxn7e-0001TK-Gu for guile-user@gnu.org; Tue, 04 Jul 2006 11:47:34 -0400 Original-Received: from [131.225.111.11] (helo=mailgw1.fnal.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FxnLM-00020h-2u for guile-user@gnu.org; Tue, 04 Jul 2006 12:01:44 -0400 Original-Received: from mailav1.fnal.gov (mailav1.fnal.gov [131.225.111.18]) by mailgw1.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with SMTP id <0J1V005WHYES34@mailgw1.fnal.gov> for guile-user@gnu.org; Tue, 04 Jul 2006 10:44:56 -0500 (CDT) Original-Received: from mailgw2.fnal.gov ([131.225.111.12]) by mailav1.fnal.gov (SAVSMTP 3.1.7.47) with SMTP id M2006070410445601935 for ; Tue, 04 Jul 2006 10:44:56 -0500 Original-Received: from conversion-daemon.mailgw2.fnal.gov by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) id <0J1V00201YD2IC@mailgw2.fnal.gov> (original mail from j85wilson@fastmail.fm) for guile-user@gnu.org; Tue, 04 Jul 2006 10:44:56 -0500 (CDT) Original-Received: from [192.168.2.4] (d53-64-59-128.nap.wideopenwest.com [64.53.128.59]) by mailgw2.fnal.gov (iPlanet Messaging Server 5.2 HotFix 2.06 (built Mar 28 2005)) with ESMTPSA id <0J1V005TBYEUG6@mailgw2.fnal.gov> for guile-user@gnu.org; Tue, 04 Jul 2006 10:44:55 -0500 (CDT) In-reply-to: <87sllh4ymh.fsf@laas.fr> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) 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:5398 Archived-At: Thanks to all, this looks helpful. Ludovic Court=E8s wrote: > Hi, >=20 > Jonathan Wilson writes: >=20 >=20 >>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 shel= l >>inside a text area of a gui or something like that. >=20 >=20 > I guess you can simply rebind the input/output ports: >=20 > (set-current-input-port the-gui-input-port) > (set-current-output-port the-gui-output-port) > (set-current-error-port the-gui-error-port) >=20 > 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 gue= ss > `guile-gtk' and `guile-gnome' provide a port abstraction for text-b= ased > widgets). >=20 > Thanks, > Ludovic. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user