Some programs are able to amend console output, wget easily comes to mind.
How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would prefer pure Python.
from IPython.core.display import clear_output
from time import sleep
for i in range(100):
clear_output()
print '[', '='*i, ' '*(100-i), ']'
sleep(0.1)