PxPlus User Forum

Main Board => Discussions => Thin Client/WindX => Topic started by: JimGwynn on October 04, 2019, 07:37:44 PM

Title: Clear screen from bash
Post by: JimGwynn on October 04, 2019, 07:37:44 PM
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?
Title: Re: Clear screen from bash
Post by: keith.mcbride on October 07, 2019, 09:23:15 AM
In a terminal window, the command "clear" will clears the screen. You can see if it will do the same in Windx
Title: Re: Clear screen from bash
Post by: Mike King on October 07, 2019, 10:09:42 AM
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.