title: Output to the same line overwriting previous output?
body: <p>I am writing an FTP downloader. Part of to the code is something like this:</p>
  
  <pre><code>ftp.retrbinary("RETR " + file_name, process)
  </code></pre>
  
  <p>I am calling function process to handle the callback:</p>
  
  <pre><code>def process(data):
      print os.path.getsize(file_name)/1024, 'KB / ', size, 'KB downloaded!'
      file.write(data)
  </code></pre>
  
  <p>and output is something like this:</p>
  
  <pre><code>1784  KB / KB 1829 downloaded!
  1788  KB / KB 1829 downloaded!
  etc...   
  </code></pre>
  
  <p>but I want it to print this line and next time reprint/refresh it so it will only show it once and I will see progress of that download.</p>
  
  <p>How can it be done?</p>