draw2d: preventing windows from closing



Hi list,

I usually use maxima in batch mode (linux command line).
I.e. I write a batch file say test.mac
and then at the prompt I say "maxima -b test.mac".

If I want to plot something with plot2d
I use e.g. the following in my test.mac

F(x) := x^2;
plot2d([F],[x,-1,1],[plot_format,gnuplot]);

If the batch file has completed, the plot window is still open (perfect).

Question:
Can one get this effect (plot window still open) with the draw package?

Regards Andre