Issue
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)?
Solution
Use escape sequences:
print(chr(27) + "[2J")
Answered By - Joril
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.