やあみんな、私はpython cursesに取り組んでいて、initscr()で最初のウィンドウを持っていて、それをオーバーラップするいくつかの新しいウィンドウを作成しています。これらのウィンドウを削除して、標準画面を復元できるかどうかを知りたいです。それを補充します。方法はありますか?また、ウィンドウ、サブウィンドウ、パッド、サブパッドの違いを誰かに教えてもらえるかどうか尋ねることもできます。
私はこのコードを持っています:
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.