Scrollback Buffer
As content is printed to the terminal, lines that scroll off the top are moved into the scrollback buffer where they can be reviewed by scrolling up.Configuring Scrollback Size
Control how many lines of history are retained:Configure Scrollback Lines
Larger scrollback values require more memory. If you have many long-lived tabs, consider the impact on system RAM when setting this value.
Scrollbar Configuration
Enable or disable the visual scrollbar:Enable Scrollbar
Navigating the Scrollback
Keyboard Navigation
| Action | Keybinding |
|---|---|
| Scroll up one page | Shift+PageUp |
| Scroll down one page | Shift+PageDown |
| Scroll with mouse wheel | Mouse Wheel |
Programmatic Scrolling
Custom Scroll Bindings
Searching the Scrollback
WezTerm includes a powerful search overlay that lets you find text in your scrollback buffer.Activating Search Mode
| Platform | Keybinding |
|---|---|
| macOS | Cmd+F |
| Linux/Windows | Ctrl+Shift+F |
Search Mode Controls
When the search overlay is active:| Action | Keybinding |
|---|---|
| Type to search | Any character |
| Find previous match | Enter, UpArrow, Ctrl+P |
| Find next match | Ctrl+N, DownArrow |
| Previous page of matches | PageUp |
| Next page of matches | PageDown |
| Toggle search mode | Ctrl+R (cycles: case-sensitive → ignore case → regex) |
| Clear search pattern | Ctrl+U |
| Copy selected match | Ctrl+Shift+C |
| Exit search | Escape |
Search Modes
PressCtrl+R to cycle through three search modes:
- Case-sensitive text matching - Exact case match
- Case-insensitive matching - Ignores case differences
- Regular expression - Uses Rust regex syntax
Saved Searches
Create keybindings to search for common patterns instantly.Example: Git Hash Search
Search for Git Hashes
More Saved Search Examples
Clearing the Scrollback
Remove all scrollback history from the current tab:| Platform | Keybinding |
|---|---|
| macOS | Cmd+K |
| Linux/Windows | Ctrl+Shift+K |
Custom Clear Binding
Custom Clear Scrollback
Customizing Search Mode
You can customize the key bindings for search mode by overriding thesearch_mode key table:
Custom Search Bindings
Performance Considerations
- Memory usage increases with
scrollback_linessetting - Search performance depends on scrollback size and pattern complexity
- Consider reducing scrollback size for resource-constrained systems
- Regular expressions are more powerful but can be slower than simple text searches