From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: guile-user@gnu.org
Subject: Re: scm_shell in gui
Date: Tue, 04 Jul 2006 09:28:54 +0200 [thread overview]
Message-ID: <87sllh4ymh.fsf@laas.fr> (raw)
In-Reply-To: <44A9428E.2000603@fastmail.fm> (Jonathan Wilson's message of "Mon, 03 Jul 2006 11:15:10 -0500")
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 7:28 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 [this message]
2006-07-04 15:44 ` Jon Wilson
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=87sllh4ymh.fsf@laas.fr \
--to=ludovic.courtes@laas.fr \
--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).