Every pane remembers its history. By default each pane keeps the last 10,000 lines (scrollback_lines in config.toml). You can scroll back through it at any time.
πΈ Screenshot coming here: A pane scrolled back through history, with an
βNbadge in the bar. π¬ Video coming here: Scrolling back and returning to the live screen.
| Input | Effect |
|---|---|
| Mouse wheel over a pane | 3 lines towards or away from history |
shift+pageup / shift+pagedown |
Half the pane height at a time |
Copy mode (alt+a) |
Full vim motions across all history |
| Drag a selection past the top/bottom edge | Auto-scroll while dragging |
When you scroll, the pane anchors to an absolute history row β it shows the same content even as new output arrives below. A small βN badge in the barβs mode widget tells you how far back you are.
Typing returns to live. Any keypress forwarded to a pane first clears the anchor, so you snap back to the newest output.
Full-screen programs that do not use mouse mode get arrow keys for the wheel (like a regular terminal). Apps that asked for mouse reports receive raw wheel events instead.
CSI J 3-style sequences; T-Strip honours them.History is not re-wrapped when a pane is resized. Old lines keep the width they had when captured. Widening shows extra space on the right of old lines rather than re-flowing words β the same trade-off tmux made by default.
π¬ Video coming here: Resizing a pane and seeing old lines keep their original width.
Next: Copy Mode explains how to select and copy text from your scrollback history.