Hacker News new | ask | show | jobs
by hnlmorg 1497 days ago
Once it's scrolled off the top of the screen you're basically at the mercy of your terminal emulator's scrollback history. Some might have an escape sequence available to recall it but I there isn't any standard way of doing it.

You'd be better off piping into less / more / most. These are called "pagers" and are designed to do this. eg

    cat large-file | grep common-phrase | less