Skip to content

Instantly share code, notes, and snippets.

@a7madgamal
Last active October 27, 2016 12:00
Show Gist options
  • Save a7madgamal/10860959 to your computer and use it in GitHub Desktop.
Save a7madgamal/10860959 to your computer and use it in GitHub Desktop.
REAL cls for linux
# 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