I have found no method of clearing the terminal window from within a python script that does so without creating a huge empty space above the screen. I am writing a script that needs to periodically update the screen and doing so using os.system("clear")
makes for a long scroll to see wherever you were before running the script. [edit] os.system("tput reset")
also does this [/edit]
Edit: I forgot to mention which operating system I'm using, it's Mac OS X 10.10.
To clarify, I am not looking for just any way to clear the screen, I am looking for a way that is not functionally equivalent to hitting enter a bunch of times. (e.g. print("\n\n\n\n\n\n...")
)