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?
I found methods in module documentaion which do this via saving state to the file. But maybe there exists some other way to do this in memory.
New contributor
Ohart is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.