Python + Blessed: how to avoid the flickering when clearing the screen very frequently
<p><strong>What I am doing</strong></p>

<p>Versions: <em>Linux + Python 2.7 + Blessed 1.14.1</em></p>

<p>I have text strings continuously updating on terminal. Refresh rate is about 0.1 seconds.</p>

<p>They have different size and I clear the screen before printing back all the current values.</p>

<p><strong>Problem</strong> </p>

<p>The terminal flickers when <code>Terminal.clear()</code> is called so often.</p>

<p><strong>Possible (ugly) solution</strong></p>

<p>I could pad each line to have fixed length and overlap it on the old text, but this is not <em>elegant</em>. I would imagine there is a better way to accomplish this.</p>

<p><em>EDIT</em></p>

<p>Pending a term.clear_eol (clear till end of line) is far more efficient than pad each line with blanks:</p>

<pre><code>print(term.bold_white_on_red("text") + term.clear_eol)
</code></pre>

<p>Off course <code>print(term.clear())</code> at the beginning must be removed to avoid the flickering.  </p>

<p><strong>Question</strong></p>

<p>In <em>curses</em> I could use <code>curses.erase()</code> instead of <code>curses.clear()</code>, but I couldn't find any <code>erase()</code> in <em>Blessed</em>. Is there any other (obvious) solution that I am overlooking?</p>

<p>(PS: I already read all available docs. While I know quite a bit of <em>curses</em> I would like to start using <em>Blessed</em> because it is far easier.)</p>