On Monday, October 5, 2015 at 10:56:50 AM UTC+2, Laurent Orseau wrote:
> I don't think there is anything like this right now, but in case anyone wants 
> to do that, my first impression is,  that such a command should not 
> completely erase the previous content but only hide it (by scrolling down for 
> example). I tried very quickly to do that using `set-position` of `text%` but 
> I couldn't make it leave a blank space after the cursor position when at the 
> end of the editor.

I'm guessing you (or who does this) will need to insert whitespace (newlines) 
with some insert method, after setting the position, probably with 
(send a-text insert string)

You'll also need to act on the editor-canvas% to scroll it down (text% can't do 
that because it's just a MVC Model, while editor-canvas% is the corresponding 
View). (It seems you'll have to call allow-scroll-to-last and scroll-to).

I can't do the rest myself because I haven't learned enough APIs to "try 
something quickly" — only hacked slowly a plugin. But if you share your attempt 
I might be able to try.

Cheers,
Paolo

> On Sun, Oct 4, 2015 at 6:28 PM, Aman <[email protected]> wrote:
> Hi all,
> 
> 
> 
> I am new to DrRacket. I am using swindle language and want to know a way so 
> that I can clear my evaluation window(interaction window) after I do some 
> direct runs there.
> 
> 
> 
> For example if i run following
> 
> 
> 
> > (define a 3)
> 
> > (define b 2)
> 
> 
> 
> Now i want something like
> 
> > clear
> 
> which could clear the window but still keep a and b in environment (memory). 
> Is it possible somehow?
> 
> 
> 
> After going through a lot of posts all I was able to figure out was to hit 
> "Run" and use "Esc:p" to again load the needed commands which seems to me a 
> very bad way.
> 
> 
> 
> Thanks!
> 
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to