Last active
April 20, 2023 14:23
-
-
Save anselmobd/b8832b889683d8626d4f4713cb770d9f to your computer and use it in GitHub Desktop.
Console clear screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import shutil | |
def clearscr(): | |
terminal_size=shutil.get_terminal_size() | |
print("\n"*(terminal_size.lines-2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment