But due to its multiple windows operating at the same time, for some of the users, it becomes difficult to scroll up in the terminal windows (either from the keyboard or mouse). And the issue aggravates due to the multiplicity of the Unix-based OSs. But no need to worry, a user can scroll up easily in Tmux as discussed below:
Enable and Use the Scroll Mode of Tmux
You can scroll up and down in Tmux by using the following: When a user is done with scrolling, he can get out of scroll mode in Tmux by pressing the Q key. If that did not work as per the expectations, then check if using the F7 key to enter the scroll mode and q to quit the mode solves the problem.
Enable and Use the Copy Mode
Use the VI Mode
If Tmux is controlled by an attached client, then it is called a VI mode in Tmux. In the VI mode, you may use Shift + K and Shift + J keys to navigate line by line in the Tmux interface (if in the scroll mode), otherwise, the only cursor will move when the mentioned keys are pressed. Also, you may press the C-B keys (twice) to scroll up a page and the C-F keys to scroll down a page in the Tmux.
Edit the Tmux.Config File
For some of the advanced users, the above methods might not be satisfactory, in that case, editing the Tmux.config file might solve the problem (as discussed below). You may launch the Tmux.config file by executing vim ~/.tmux.config in the terminal.
Enable Mouse Scrolling
Keep in mind you may hit the Q key to exit the scroll mode afterward. Also, to copy the contents from the terminal you may use the Shift + Mouse Left Click to perform the copy operation.
Enable Mouse Scrolling with Key Binding:
Keep in mind that if you have to copy an item in the Tmux’s mouse mode, then use the Shift key + left mouse click to copy the contents. If that did not work, check if adding the following to Tmux.config solves the problem:
Enable Default Xterm Scrolling
If that did not work, check if adding the following to the configuration file of Tmux adds the required behavior (but you may have to reboot your system afterward): But keep in mind if you change the terminal type to Putty, then the above code may not work and if you have to use Putty, then you may add the following to the configuration file of Tmux: If that did not work, you check if adding the following to the configuration file solves the problem:
For macOS Mojave and Above
Just use Option + UpArrow to scroll up and Option + DownArrow to scroll down on a Mac with macOS X and above. If that is not working, enter the copy mode by pressing the following: Then to scroll up or down a line by using the up or down arrow keys. To scroll a page up or down, you may use the fn + up arrow or fn + down arrow key. And whenever you have to quit the mode, just press the q key.
Try a Plug-in
If none of the above worked as per your expectation, then using a plug-in like Tmux-Better-Mouse-Mode may fulfill your requirements.
World War 3 Stuck at Loading Map? Try these methodsFix: TrackPad Scroll Not Working on MacOSTroubleshoot Mouse Scroll Only Affects VolumeFix: Two Finger Scroll Not Working