title: C game with ncurses - closing window without exiting the program
body: <p>I'm writing a simple C hangman game, which is my first acquaintance with graphics in C. </p>
  
  <p>In the main function I've put a window menu, using "newwin", "mvwprintw" and "wrefresh".
  From this menu I'm calling another function for New Game, using new window for it.</p>
  
  <p>I want to have a Quit option from New Game window when Q is pressed, which is leading back to the Menu window. </p>
  
  <p>I've tried with "endwin" for new game window, which doesn't exit the program, but closes the exe and the process should be stopped from the terminal.</p>
  
  <p>How can I close a window and move to another, without deleting the first one?</p>