Hi Alasdair san,
It is a bit difficult issue to resolve.
Because of the Emacs buffer semantics, Imaxima cannot assume
how the output from maxima is divided into chunk of chars. To deal
with this issue, imaxima asks maxima to insert special characters
before and after the prompt of maxima.
Until these characters are recognized by imaxima, imaxima merely
accumulates the output.
When imaxima recognizes that such special characters appear in
the output of maxima, imaxima processes the output using latex
and ghostscript to generate a rendered math formula images.
This is why the output by print(i) in your program does not trigger
the output processing by imaxima.
I don't have good immediate solution for this issue. If you come up
with a good solution, I am more than happy to integrate it in the
source code.
Yasuaki Honda / Chiba, Japan
On 2008/08/24, at 8:41, Alasdair McAndrew wrote:
> Here's one problem I have with imaxima. If you enter the command
>
> for i:1 thru 10 do (print(i),?sleep(1));
>
> it doesn't print out the numbers 1 to 10 at intervals of 1 second;
> rather it waits 10 seconds and then prints all the numbers out at
> once. How can I modify imaxima to print out during the execution of
> a program, instead of waiting until the program terminates? This is
> not a lisp problem; it doesn't happen with console maxima.
>
> Thanks,
> Alasdair
>
> --
> Blog: http://amca01.wordpress.com
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima