Use case: I'm working in bash/terminal and have been typing several commands and I've just run something and it's spewed some output. I'm trying to find where that output started and have to visually search the page to see where the command is that I typed.
Now had I anticipated that I was going to struggle to find the start of the content I would have run
clear && <my command>.
So what I'm looking for is something like
clear -1 which would (1) grab all the content since the last command, (2) run
clear, and then (3) paste the content into the terminal.