This is almost a duplicate of clear terminal in python, but not quite.
That question reads: Does any standard "comes with batteries" method exist to clear the terminal screen from a python script, or do I have to go curses (the libraries, not the words) ?
All of the responses there result in what happens when you enter clear
on your terminal - everything on your screen disappears except for an empty command line at the very top. But, if you'd like, you can scroll back up to see what you were doing earlier.
I'm looking for a way to do this, but to not allow the user to scroll back up. It's the equivalent of what command+K
does on macOS.
The application is a multiplayer card game, and I don't want a player to be able to scroll back up to see another player's hand.