title: How to refresh curses window correctly?
body: <pre><code>while 1:
      ...
      window.addstr(0, 0, 'abcd')
      window.refresh()
      ...
  </code></pre>
  
  <p><code>window</code> size is full terminal size, big enough to hold <code>abcd</code>.
  If <code>'abcd'</code> is modified to shorter string like <code>'xyz'</code>, then on terminal I will see <code>'xyzd'</code>. What exactly I am doing wrong?</p>