lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> >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.)