When I search with iterm2, using ctrl+f, it will search through older stuff in the buffer, older than the current process I am running in the terminal. In this case I don't care about the older stuff in the buffer, I want to delete it.
My question is - is there a way to programmatically clear the buffer, using a bash script/command? I could call this shell command from my process when it starts up.