title: How do I delete a curse window in python and restore background window?
body: <p>I'm working on python curses and I have an initial window with initscr(). Then I create several new windows to overlap it, I want to know if I can delete these windows and restore the standard screen without having to refill it. Is there a way? Could someone tell me the difference between a window, subwindow, pad and sub pad.</p>
  <p>I have this code:</p>
  <pre><code>stdscr = curses.initscr()
  ####Then I fill it with random letters
  stdscr.refresh()
  newwin=curses.newwin(10,20,5,5)
  newwin.touchwin()
  newwin.refresh()
  
  ####I want to delete newwin here so that if I write stdscr.refresh() newwin won't appear
  
  stdscr.touchwin()
  stdscr.refresh()
  
  ####And here it should appear as if no window was created.
  </code></pre>