Clear screen from bash

Started by JimGwynn, October 04, 2019, 07:37:44 PM

Previous topic - Next topic

JimGwynn

Is there way to issue a clear screen command within the .bash_profile that will clear the windx screen and return to the upper left?

keith.mcbride

In a terminal window, the command "clear" will clears the screen. You can see if it will do the same in Windx

Mike King

If the 'clear' command doesn't work for you, WindX will accept most ANSI terminal escape sequences thus you should be able to issue at the Linux command line:

printf "\033[H\033[J"

When \033 is the octal representation of the ESC character.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com