title: Does endwin() de-initialize ncurses?
body: <p>I am using the <code>ncurses</code> library to show some funny output on the screen, but in the middle of the program I need to temporarily exit <code>ncurses</code> mode. I call <code>endwin()</code>, after which my program should be able to use <code>printf()</code> to show a menu to the user. Unluckily, my program was unable to show the menu. I tried using  <code>fflush()</code> after <code>printf()</code>, and only then is it able to show the menu on the screen.</p>
  
  <p>Can anyone tell me why, after I call <code>endwin()</code>, the terminal can't return to normal and I'm unable to use <code>printf()</code>? </p>