Skip to content

Instantly share code, notes, and snippets.

@jkutner
Created October 1, 2022 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkutner/7e7ed939365620e62ada7eaef967decd to your computer and use it in GitHub Desktop.
Save jkutner/7e7ed939365620e62ada7eaef967decd to your computer and use it in GitHub Desktop.
def clear():
if sys.platform.startswith("linux"):
os.system("clear")
elif sys.platform.startswith("win32"):
os.system("cls")
elif sys.platform.startswith("darwin"):
os.system("clear")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment