python - multi line stdout refresh issue
<p>I have a stats app written in python that on a timer refreshes the ssh screen with stats. Right now it uses os.system('clear') to clear the screen and then outputs a multi line data with the stats.</p>

<p>I'd like to do just do a \r instead of executing the clear but that only works with one line, is it possible to do this with multiple lines?</p>

<p>A classic example of what I want to do is when you execute the "top" command which lists the current processes it updates the screen without executing the "clear" and it's got many lines.</p>

<p>Anyone have any tips for this?</p>
