title: How to make a commandline statusbar that is 'updated' in Python
body: <p>I don't know the right terms, so it is a bit hard to search how I can achieve this.</p>
  
  <p>Commandline programs normally just print lines of text. Sometimes however, the text is updated. Good examples are <code>git pull</code> or <code>wget</code>.</p>
  
  <p>As example:</p>
  
  <pre><code>[&gt;   ]  25%
  [-&gt;  ]  50%
  [--&gt; ]  75%
  [---&gt;] 100%
  </code></pre>
  
  <p>But then on the same line changing over time.</p>
  
  <p>How can I make this kind of thing in Python? It doesn't have to be more complicated than this, I just want to make status bars...</p>
  
  <p>(I want this to work at least on Ubuntu, but cross-platform is the nicest.)</p>