[prev in list] [next in list] [prev in thread] [next in thread] 

List:       racket-users
Subject:    [plt-scheme] MrEd's stdio REPL with GUI code
From:       mflatt () cs ! utah ! edu (Matthew Flatt)
Date:       2002-08-21 13:02:16
Message-ID: 200208211302.g7LD2Gv10797 () wrath ! cs ! utah ! edu
[Download RAW message or body]

Evaluate

  (current-eventspace (make-eventspace))

as the first expression in the stdio REPL, and then it will work the
way you want.

The GUI REPL creates a new eventspace for evaluating expressions, so
the expressions are not evaluated in MrEd's main thread. The stdio
REPL, however, uses the main thread for evaluating expressions, so that
it acts just like MzScheme.

Matthew


At Tue, 20 Aug 2002 18:56:19 -0400, Eduardo Cavazos wrote:
> ;;;;;;;;; /tmp/test-mred.scm ;;;;;;;;;;
> 
> (define *frame*
>   (make-object frame% "Testing MrEd" #f #f #f #f #f '()))
> 
> (define	*text-field*
>   (make-object	text-field% #f *frame* (lambda (a b) #t) "" '(single)))
> 
> (send *frame* show #t)
> 
> ;;;;;;;;;; end of file ;;;;;;;;;;
> 
> If you first start MrEd:
> 
> 	$ mred
> 
> and load that file at the graphical REPL:
> 
> 	> (load "/tmp/test-mred.scm")
> 
> the window appears and you can type into the text-field. You can also
> continue to work in the REPL.
> 
> However, if you start MrEd and opt for the stdio REPL:
> 
> 	$ mred -z
> 
> and then load the file, the window appears but it is seemingly
> nonresponsive. The stdio REPL continues to respond however.
> 
> I've tried this in 103p1 and 201.
> 
> Anyone know how to get around this problem? Specifically, I'd like to run
> mred, load a file which does some gui stuff, and still interact with mred
> via the stdio REPL.
> 
> Ed
> 
> 




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic