Terminal – How to Partially Clear Scrollback

itermiterm2terminal

I want to partially clear my terminal scrollback history, but only from where I have selected with my mouse in the scrollback and up. Is this possible? I'm on a Mac, and I use iTerm2 and Terminal.

Best Answer

Not sure about partially, but you can fully clear your scrollback with Cmd+K. Control+L will only clear the screen, not the scrollback content/history/buffer.

If you want the partial scrollback badly enough, this would probably be the place to implement it.

Related Question