In my .zshrc i have the alias
alias cls='printf "\033[H\033[3J"'. With this I can run
os.system(cls) in my Python script to clear the screen (and clear buffer, totally clean, just prompt and no scrollback.)
This works on Big Sur but now I'm on Sequoia. Why did it stop working?
Running directly os.system('printf "\033[H\033[3J"') doesn't help, nor the old printf "\033c". What's up? (I'm on Python version 3.13.7)
printf "\033c"in Bash still cleares the Terminal window for me with Sequoia.clear?