[GAP Forum] Delayed printing

John Bamberg john.bamberg at uwa.edu.au
Fri Dec 21 10:02:35 GMT 2012


You need to flush the buffer with \c:

Print("print now\c");

On 21/12/2012, at 5:46 PM, Anvita <anvita21 at gmail.com> wrote:

> Dear Forum,
> 
> Why does the program
> 
> -------------------------------------
> repeat
> Print("Before the pause...");
> for i in [1..2^28-1] do od;  # pause
> Print("After the pause\n");
> until true;
> -------------------------------------
> 
> behave in the same way as
> 
> -------------------------------------
> repeat
> for i in [1..2^28-1] do od;  # pause
> Print("Before the pause...");
> Print("After the pause\n");
> until true;
> -------------------------------------
> 
> instead of printing the first message immediately?
> 
> Thank you,
> Anvita
> _______________________________________________
> Forum mailing list
> Forum at mail.gap-system.org
> http://mail.gap-system.org/mailman/listinfo/forum




More information about the Forum mailing list