* scm_shell in gui
@ 2006-07-03 16:15 Jonathan Wilson
2006-07-04 7:28 ` Ludovic Courtès
2006-07-04 8:58 ` Andy Wingo
0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Wilson @ 2006-07-03 16:15 UTC (permalink / raw)
Hi,
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.
Regards,
Jon
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scm_shell in gui
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
2006-07-04 8:58 ` Andy Wingo
1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2006-07-04 7:28 UTC (permalink / raw)
Cc: guile-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scm_shell in gui
2006-07-04 7:28 ` Ludovic Courtès
@ 2006-07-04 15:44 ` Jon Wilson
0 siblings, 0 replies; 4+ messages in thread
From: Jon Wilson @ 2006-07-04 15:44 UTC (permalink / raw)
Cc: guile-user
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scm_shell in gui
2006-07-03 16:15 scm_shell in gui Jonathan Wilson
2006-07-04 7:28 ` Ludovic Courtès
@ 2006-07-04 8:58 ` Andy Wingo
1 sibling, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2006-07-04 8:58 UTC (permalink / raw)
Hi,
On Mon, 2006-07-03 at 11:15 -0500, Jonathan Wilson wrote:
> to run a guile shell
> inside a text area of a gui or something like that.
See (gnome gtk graphical-repl) in guile-gnome-platform.
Regards,
--
Andy Wingo
http://wingolog.org/
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-04 15:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-07-04 8:58 ` Andy Wingo
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).