Clear a terminal screen for real [closed]
Use the following command to do a clear screen instead of merely adding new lines … printf “\033c” yes that’s a ‘printf’ on the bash prompt. You will probably want to define an alias though… alias cls=”printf “\033c”” Explanation \033 == \x1B == 27 == ESC So this becomes <ESC>c which is the VT100 escape … Read more