PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Clear screen from bash  (Read 627 times)

JimGwynn

  • Member
  • **
  • Posts: 16
    • View Profile
Clear screen from bash
« 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?

keith.mcbride

  • Member
  • **
  • Posts: 7
    • View Profile
Re: Clear screen from bash
« Reply #1 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

Mike King

  • Administrator
  • Diamond Member
  • *****
  • Posts: 3416
  • Mike King
    • View Profile
    • PVX Plus Technologies
Re: Clear screen from bash
« Reply #2 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.