Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-06 Thread Paolo Giarrusso
After more playing around, I got to this — which scrolls down a bit but not enough. Now it's down to actually understanding `(send an-editor-canvas scroll-to ...)` docs — in particular, what are editor coordinates. I'm fearing it's in pixels. #lang racket/base (require racket/class) ;; string?

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-06 Thread Paolo Giarrusso
So, a skeleton calling insert, relying on `script-plugin`, is the following. It doesn't work yet, but it took like 1 minute, so it's a cool starting point. With script-plugin, you can just edit it and rerun it without restarting Racket: ``` #lang racket/base (require racket/class) ; Sample iden

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-06 Thread Laurent
I'm using the script plugin [*] to test things quickly. You get direct access to the current editor, either the interactions or the definitions one. Possibly it would be even more helpful to have an interaction window with access to the same things for quick hacks. That could be either a standalon

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Paolo Giarrusso
On 6 October 2015 at 01:45, Aman wrote: > > Thanks Laurent and Paolo. When you say (send a-text insert string), how are > you getting a-text ? > What I wanted was not to design a new editor window, but to modify or 'send' > some command to current editor (the default one when we launch DrRacke

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Aman
Thanks Laurent and Paolo. When you say (send a-text insert string), how are you getting a-text ? What I wanted was not to design a new editor window, but to modify or 'send' some command to current editor (the default one when we launch DrRacket) to clear some content or scroll down to hide th

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Paolo Giarrusso
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

Re: [racket-users] 'clear' equivalent in DrRacket

2015-10-05 Thread Laurent
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%` b

[racket-users] 'clear' equivalent in DrRacket

2015-10-04 Thread Aman
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