wiki

Scrollback

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 ↑N badge in the bar. 🎬 Video coming here: Scrolling back and returning to the live screen.

Ways to scroll

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.

What is kept and what is trimmed

History vs. resize

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.