The Computer Oracle

How can I partially clear my terminal scrollback?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Underwater World

--

Chapters
00:00 Question
00:28 Accepted answer (Score 122)
00:54 Answer 2 (Score 0)
01:08 Thank you

--

Full question
https://superuser.com/questions/576410/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#terminal #iterm2 #iterm

#avk47



ACCEPTED ANSWER

Score 123


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.




ANSWER 2

Score 0


This is not possible, but you can clear just the screen by pressing Control+L.