-
-
Save a7madgamal/10860959 to your computer and use it in GitHub Desktop.
REAL cls for linux
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
# Use this command to do a terminal clear screen instead of just adding new lines ... | |
printf "\033c" | |
# alias it as cls | |
alias cls='printf "\033c"' | |
# \033 == \x1B == 27 == ESC | |
# this becomes <ESC>c which is the VT100 escape code for resetting the terminal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment