title: How does a terminal "ASCII animation" work?
body: <p>I am calling it an ASCII animation for lack of a better word. What I am referring to is for example a loading bar, let's say like in <code>pacman</code> (arch package manager) ,that starts like this...</p>
  <pre><code>[          ]
  </code></pre>
  <p>and turns over time to this...</p>
  <pre><code>[####      ]
  </code></pre>
  <p>From my understanding of <code>stdout</code> I can't seem to wrap my head around this seemingly simple feature.I expect...</p>
  <pre><code>[          ]
  [#         ]
  [###       ]
  ...
  </code></pre>
  <p>What I'm not understanding is how is it able to print on top of <code>stdout</code> ,(if it's even doing that).</p>