Last active
November 19, 2023 10:46
-
-
Save gilbertoalbino/adb30fd0e4a12b204a0ed652a76e7cf8 to your computer and use it in GitHub Desktop.
Python Control+L clear() function PowerShell
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
// 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