Write all data associated with the window into the provided file object. This information can be later retrieved using the getwin() function.
curses/window.putwin
window.putwin