title: Correct way to repaint entire screen?
body: <p>I don't understand what function(s) to use to repaint the screen when the user presses Ctrl-L or Ctrl-R. What's the difference between using <code>clearok()</code>, <code>redrawwin()</code>, or <code>wrefresh()</code> with <code>curscr</code> as argument? From the OpenBSD man pages:</p>
  
  <blockquote>
    <p>If clearok is called with TRUE as argument, the next call to wrefresh with this window will clear the screen completely and redraw the entire screen from scratch.  This is useful when the contents of the screen are uncertain, or in some cases for a more pleasing visual effect.  If the win argument to clearok is the global variable curscr, the next call to wrefresh with any window causes the screen to be cleared and repainted from scratch.</p>
  </blockquote>
  
  <p>...</p>
  
  <blockquote>
    <p>If the win argument to wrefresh is the global variable curscr, the screen is immediately cleared and repainted from scratch.</p>
  </blockquote>
  
  <p>...</p>
  
  <blockquote>
    <p>The wredrawln routine indicates to curses that some screen lines are corrupted and should be thrown away before anything is written over them.  It touches the indicated lines (marking them changed).  The routine redrawwin() touches the entire window.</p>
  </blockquote>