Skip to content

Instantly share code, notes, and snippets.

@gilbertoalbino
Last active November 19, 2023 10:46
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 gilbertoalbino/adb30fd0e4a12b204a0ed652a76e7cf8 to your computer and use it in GitHub Desktop.
Save gilbertoalbino/adb30fd0e4a12b204a0ed652a76e7cf8 to your computer and use it in GitHub Desktop.
Python Control+L clear() function PowerShell
// Just copy and paste, and press ENTER 2 times!
def clear():
import os;
os.system("tput reset")
os.system("cls" if os.name == "nt" else "echo -e \\\\033c")
// Use it:
clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment