title: cross-platform dynamic terminal printing
body: <p>Consider this code:</p>
  <pre><code>import time
  
  while True:
      print(f&quot;{object}&quot;)
      doing_something_to_object(object)
      object.update()
      time.sleep(3)
  </code></pre>
  <p>output would look like this, making newline:</p>
  <pre><code>value
  value
  value
  value
  </code></pre>
  <p>I want to do something so that when <code>object</code> is ready to be displayed, <code>object</code> <em>updates</em> on the screen.</p>
  <p>For better explanation,</p>
  <p>i want to output a screen with consistently updated values.:</p>
  <pre><code>*--------------------------------------*
  
  value1                          value2
  
  *--------------------------------------*
  </code></pre>
  <p>if i was to print that in a loop, updating values in string before next print, it would look like this (i don't want this):</p>
  <pre><code>*--------------------------------------*
  
  value1                          value2
  
  *--------------------------------------*
  *--------------------------------------*
  
  value1                          value2
  
  *--------------------------------------*
  *--------------------------------------*
  
  value1                          value2
  
  *--------------------------------------*
  *--------------------------------------*
  
  value1                          value2
  
  *--------------------------------------*
  </code></pre>
  <p>what are some ways to do this without using something like pygame or tkinter? <code>curses</code> should do the trick, but it is not cross-platform. is there something <code>curses</code> for both linux and windows?</p>