Hell-o guys, I'm working on python curses and I have my initial window with initscr() and 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? I can also ask if someone can tell me the difference between a window, subwindow, pad and sub pad.
I have this code:
stdscr = curses.initscr()
Then I fill it with random lettersstdscr.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 appearstdscr.touchwin() stdscr.refresh()
And here it should appear as if no window was created.