|   | 1 |  initial version  | 
Sage in written in Python, so you can benefit of any good things from it. Searching a couple of seconds led me to the following:
sage: from time import sleep
sage: from sys import stdout
sage: for i in range(10):
....:     stdout.write("\rDoing thing %i" % i)
....:     stdout.flush()
....:     sleep(1)
There might even be dedicated libraries.
|   | 2 |  No.2 Revision  | 
Sage in written in Python, so you can benefit of any good things from it. Searching a couple of seconds on the web led me to the following:
sage: from time import sleep
sage: from sys import stdout
sage: for i in range(10):
....:     stdout.write("\rDoing thing %i" % i)
....:     stdout.flush()
....:     sleep(1)
There might even be dedicated libraries.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.