Clean up old output by booting a-shell
I created and added clear command to .profile but by booting previous output still there.
Did I miss something?
That's a good question. To speed things up, the .profile is executed while the rest of the app is starting up (especially the actual terminal window). As a consequence, the .profile does not act on the window (you also cannot print things during the .profile execution).
On an iPad, exit will both close the window and erase its content, but that's not the answer to your question (on an iPhone, exit only erases the content and history, but does not close the window). Also, if you force-quit the app, it does not save the content, but that's also not the answer to your question.
I'll have to add a privacy mode to erase all content, or change the order of execution of .profile.
On my iPhone SE (2020), old output loads when starting the app with enough delay that I have to scroll down to see the command prompt. I'd prefer the behavior of a regular terminal, where opening a terminal starts without any output from previous sessions.
Is there a way to clear old output short of uninstalling a-shell?
I'll add that as an option on the next version.