I am using Windows Terminal along with a batch file that runs cls as the first command. Under standalone cmd.exe running cls clears the window and scrollback. Under Windows Terminal, it does not clear the scrollback.
What can I add to my .bat file along with cls to remove the scrollback?
This bug report claims that using echo "$([char]27)[2J$([char]27)[3J" clears the scrollback, but I believe that this applies to either Ubuntu host or Powershell. If I put that command verbatim into the .bat file it just echoes those literal characters.