Search code examples
bashterminaliterm2

A way to push terminal prompt to top of screen without deleting history


I am looking for a way to be able to do something like command k, without deleting the history of my terminal. I want to a way to push the terminal prompt to top of the screen without deleting history.


Solution

  • "clear" will do that.

    It will remove everything from the window, but leave the history of the session untouched.