title: NCurses Refresh
body: <p>I have a small ncurse program I'm running, but the output doesn't seem to show up unless I stick the <code>wrefresh()</code> in a while loop. </p>
  
  <p>Is there some buffering going on or something? I tried other <code>refresh</code> functions in the library and <code>fflush</code> with <code>stddout</code> (which I don't think makes sense, but worth a try), but nothing seems to work.</p>
  
  <p>A second small question: to make <code>getch()</code> non-blocking we need to call <code>nodelay(win,TRUE)</code>, right?</p>
  
  <pre>
  <code>
  void main()
  {
          initscr();
          start_color();
          init_pair(1,COLOR_YELLOW,COLOR_CYAN);
          WINDOW *win = newwin(10,10,1,1);
          wbkgd(win,COLOR_PAIR(1));
          wprintw(win,"Hello, World.");
          wrefresh(win);
          getch();
          delwin(win);
          endwin();
  }
  </code>
  </pre>