Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable scrolling in tmux panels with mouse wheel? [closed]

Tags:

linux

tmux

Need to enable scrolling into tmux panels with mouse wheel. How can I get that tips? Can I use it (if its exist of course) with mouse-select-pane on option?

like image 423
mart7ini Avatar asked Oct 17 '11 18:10

mart7ini


People also ask

How do I scroll in Tmux without a mouse?

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.

How do I scroll with Tmux pane?

Scrolling Up and Down in Tmux If you want to scroll the Tmux terminal, enter the copy mode by pressing the “Ctrl+b” combination and entering “[”. Now, you can use the navigation keys like arrows (up and down) for moving line by line. Left and right arrows can be used for character by character moving.

How do I enable mouse in Tmux?

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.

How do I navigate between Tmux Windows?

Switching between panes To get from one pane to another, press Ctrl+B followed by O (as in other).


2 Answers

Origin Answer (deprecated)

Try this:

setw -g mode-mouse on 

It can be used with the mouse-select-pane on and mouse-select-window on options.

Update

After tmux 2.1, mode-mouse option is no longer available. You should now use:

set -g mouse on 

to capture mouse event.

like image 74
dm4 Avatar answered Oct 11 '22 15:10

dm4


There are some changes for Tmux 2.1

  • Mouse-mode has been rewritten. There's now no longer options for:

    • mouse-resize-pane
    • mouse-select-pane
    • mouse-select-window
    • mode-mouse

    Instead there is just one option: 'mouse' which turns on mouse support entirely.

So set -g mouse on

Update:

I have to use this script to make scrolling work again: https://github.com/NHDaly/tmux-scroll-copy-mode

like image 21
daniel Avatar answered Oct 11 '22 15:10

daniel