Make curses program output persist in terminal scrollback history after program exits
问题 I'm quite new to curses, so I'm trying out some different things in python. I've initialized the window and set scrollok for the window object. I can add strings, and the scrolling works so that addstr() doesn't have any errors at the end of the window. What I'd like to have is the ability to scroll back in the program output in my terminal program (tmux or KDE Konsole, in this case) after the program has finished. In my code, I can at least see the output if I skip the endwin() call, but