Scrolling Through Output with Copy Mode

When we work with programs in the Terminal, it’s common that the output from these programs scrolls off the screen. But when we use tmux, we can use the keyboard to move backwards through the output buffer so we can see what we missed. This is especially useful for those times when we’re running tests or watching log files.

Pressing Prefix [ places us in Copy mode. We can then use our movement keys to move our cursor around the screen. By default, the arrow keys work. But in Chapter 2, Configuring tmux, we set our configuration file to use Vim keys for moving between windows and resizing panes so we wouldn’t have to take our hands off the home row. tmux has a vi mode for working with the buffer as ...

Get tmux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.