Subject: Output/progress info during a long program?
From: Robert Dodier
Date: Wed, 25 Oct 2006 18:40:59 -0600
Alasdair,
> I have a maxima program which sometimes takes a while to compute. I'd like
> to print out some encouraging messages along the way: "Half way there" sort
> of thing. But it seems that a print statement in a program block will only
> be executed when the whole block is completed.
I tried some stuff like (print(FOO), ?sleep(3), print(BAR)); and it works
as expected (i.e. FOO is printed immediately and BAR a few seconds
later) with command line Maxima and Xmaxima (tried both on Linux
and Windows). WxMaxima (Windows) appears to collect all of the
output (FOO and BAR) before printing any of it. What interface are
you using?
best
Robert