Referring to this answer I tried increasing the buffer size using commands
set-option -g history-limit 10000
set -g history-limit 10000
but it does not work for me. I want to increase the buffer size of all the windows or at least the current window in tmux. I am opening the tmux session in Putty.
Note: I was trying to use the mouse scroll. I am able to scroll up using "prefix [" but not using the mouse
The solution is to use tmux specific controls to access its own scrollback buffer: Ctrl-b then [ to enter copy mode, use Down/Up arrows or PageDown and PageUp keys, q or Enter to exit copy mode.
Enable and Use the Scroll Mode of Tmux You can scroll up and down in Tmux by using the following: Press Ctrl + B keys followed by the [ key. Now use the normal navigation keys on the keyboard like up arrow/down arrow, page up, page down, etc. to navigate the Tmux interface.
Configure Tmux for Mouse SupportRestart Tmux or run the Tmux command source ~/. tmux. conf , and you should be able to scroll up or down the scrollback with your mouse. You'll also be able to select a pane with the mouse and resize them.
Some troubleshooting tools that helped me when I had this problem:
yes
to quickly fill up the scrollback
tmux new-session
to make sure I was getting a new session
tmux show-options -g
to see if tmux actually had the right setting.
In my case, I was unknowingly attaching to previous tmux sessions, that were created before I increased the history-limit
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With