Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mouse-wheel scroll downwards with tmux

I've got tmux to scroll up, with the mouse wheel, using mouse-mode on in tmux.conf (here's my entire conf).

But I've always had a problem scrolling back down again. Once the cursor hits the bottom of the screen, it immediately scrolls back to the bottom of the whole buffer, where the prompt is. It's not possible to scroll down a few lines in the same way I can scroll up a few lines. In other words, the whole middle section is only visible on the way up.

like image 985
mahemoff Avatar asked Mar 16 '13 15:03

mahemoff


People also ask

How do I scroll down in tmux?

In Tmux, you can scroll up and down by using the following methods: Press the Ctrl + B keys, then the subsequent “[]” key. To navigate the Tmux interface, use the standard keyboard navigation keys such as up/down arrows, page up/page down, etc.

How do I navigate between windows in tmux?

There are two methods to split tmux windows into separate panes. One allows you to make horizontal panes whereas the other splits the window into two vertical panes. You can navigate between the two panes with the help of the following commands: Ctrl + B and type o Allows you to switch to the next pane.

How do I scroll and copy in tmux?

tmux's copy mode In tmux Ctrl + b [ enters copy mode, where you can move the cursor around and select text. If you have tmux's mouse mode enabled ( set -g mouse on ) then scrolling with the scrollwheel also enters copy mode. Ctrl + b Page Up enters copy mode and scrolls up by one page.

How do you scroll up in Termius?

You should be in Gesture Mode (finger button on the keyboard) and use arrows and other shortcuts to scroll the content correctly.


2 Answers

I just upgraded from tmux 1.6 to the new tmux 1.8 (compiled from source rather than Homebrew, in case that matters), and it's working again now.

like image 121
mahemoff Avatar answered Oct 17 '22 09:10

mahemoff


What would happen if you turned mousemode off and used the keyboard? Try that. Have you used burningTyger's settings for your conf? Try deleting the buffer command, maybe then it won't autoscroll to the prompt line. If you can disable any automatic behavior you might be able to do what you need. I don't know the OSX terms, but hopefully these concepts might be helpful.

like image 20
cuabanana Avatar answered Oct 17 '22 10:10

cuabanana