Repository navigation
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
↑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.
- History stores lines trimmed of trailing blank cells, so a program spitting thousands of empty lines does not bloat memory.
- The limit is enforced lazily: over the limit, the oldest lines are dropped from the front.
- Apps can clear scrollback with
CSI J 3-style sequences; ananta honours them. - Scrolling off the alternate screen (used by vim, less, htop, …) never records history — alternate screens have no history, exactly like a regular terminal.
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.