[GAP Forum] Delayed printing

Attila Egri-Nagy A.Egri-Nagy at herts.ac.uk
Fri Dec 21 09:54:10 GMT 2012


Hey Anvita,

You can use the special character '\c' to flush the buffer like:

Print("Before the pause...\c");

@

> On Fri, Dec 21, 2012 at 8: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