Scrollback
Scrollback is the portion of a terminal's output that can be viewed by scrolling up after new output has appeared. It is implemented as a scrollback buffer that stores previously displayed lines, allowing users to review past messages, errors, or commands without re-running them.
In most modern terminal emulators, the scrollback length is configurable. Common defaults range from several thousand
Scrollback is distinct from a shell's command history. The scrollback buffer contains program output, while command
Features often include searching within the scrollback, copying text to the clipboard, and, in some terminals,
Different systems and applications implement scrollback differently. Xterm, GNOME Terminal, Konsole, iTerm2, and Windows Terminal provide
Limitations exist: very large buffers consume memory, and some programs may clear or manipulate the display