[plt-scheme] read line from drscheme input port
That port is the current-input-port of the user's program. If your tool
is already evaluating stuff in the user's space, all you need to do is
read-line or whatever. If you're not running as part of the user's
program, probably you don't want to do that; instead use some other
GUI. (it's tricky to do that because programs running on the user's
space can be killing at an arbitrary point)
What are the details?
Robby
At Tue, 15 Aug 2006 18:25:19 -0400, "Aleks Bromfield" wrote:
> I am writing a DrScheme tool which occasionally needs to get a line of
> input from the user. I would like to call (read-line
> <drscheme-input-port>), where <drscheme-input-port> is the default
> active port in the DrScheme REPL (as opposed to stdin). How do I
> access that port, or how else can I tell DrScheme to graphically
> prompt the user to enter a line of text?
>
> --
> Aleks Bromfield
> abromfie at cs.brown.edu
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme