From: Jon Wilson <j85wilson@fastmail.fm>
Cc: guile-user@gnu.org
Subject: Re: scm_shell in gui
Date: Tue, 04 Jul 2006 10:44:53 -0500 [thread overview]
Message-ID: <44AA8CF5.3010409@fastmail.fm> (raw)
In-Reply-To: <87sllh4ymh.fsf@laas.fr>
Thanks to all, this looks helpful.
Ludovic Courtès wrote:
> Hi,
>
> Jonathan Wilson <j85wilson@fastmail.fm> 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
next prev parent reply other threads:[~2006-07-04 15:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-03 16:15 scm_shell in gui Jonathan Wilson
2006-07-04 7:28 ` Ludovic Courtès
2006-07-04 15:44 ` Jon Wilson [this message]
2006-07-04 8:58 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44AA8CF5.3010409@fastmail.fm \
--to=j85wilson@fastmail.fm \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).