Outputting to curses’ window from another function
Let’s say I have set up two files.
Save and restore terminal window conent using Curses for Python
I’m making some console app on Python with Curses (window-curses) library. At some point I need to save window state (or maybe whole terminal state) to some object/variable and restore it in future.
What’s the proper way to do this?