[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: write to same line on standard out?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 14 Jul 2010 16:08:20 -0300
> >io.write(temp,"\r"); io.flush()
>
> I suspect not on the Mac (not sure).
I tested and it works just fine. You just have to do some real work between
these updates, otherwise it'll be too fast and you won't see it changing.
Try
for i=1,100 do
io.write(i,"\r"); io.flush(); os.execute"sleep 1"
end
(I just wonder why this loop cannot be broken with ^C.)