When you are building some code (for example with gcc) you usually have lots of lines of output information. If there are errors, the first one usually located somewhere in the middle of output and I have to scroll up manually to find it. It really annoys.
I'm wondering if there is a way to scroll up automatically or a way to freeze terminal scrolling after first error.
I could write a simple program to detect line with the first error, but it's still a question how to make terminal jump there.