How to enable scrolling in tmux panels with mouse wheel?

You need to enable scrolling in the tmux panel with the mouse wheel. How can I get these tips? Can I use it (if it exists, of course) using the option-click mouse panel?

+56
linux tmux
Oct 17 '11 at 18:45
source share
4 answers

Origin Response (not recommended)

Try this:

setw -g mode-mouse on 

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

Refresh

After tmux 2.1, the mode-mouse option is no longer available. Now you should use:

 set -g mouse on 

capture mouse event.

+66
Nov 11 '11 at 18:15
source share

There are some changes for Tmux 2.1

  • Mouse-mode has been rewritten. There are no more options for:

    • mouse resize panels
    • mouse select-panel
    • mouse select windows
    • mouse mode

    Instead, there is only one option: a “mouse,” which includes full mouse support.

So set -g mouse on

Update:

I need to use this script to scroll again: https://github.com/NHDaly/tmux-scroll-copy-mode

+55
Oct 19 '15 at 11:02
source share

From https://blogs.oracle.com/samf/entry/smcup_rmcup_hate

In .tmux.conf:

 set -g terminal-overrides 'xterm*:smcup@:rmcup@' 

where, for example, mouse scrolling in vim in tmux scrolls vim, NOT tmux history. Very useful, and VERY different from scrolling through the story.

+10
Apr 09 2018-12-12T00:
source share

For Mac OSX 10.9

First installation of SimpleSIMBL

Then install MouseTerm

Add this to your ~ / .tmux.conf

 set-option -g mouse-select-pane on set-option -g mouse-select-window on set-window-option -g mode-mouse on 

To scroll VIM add this to your ~ / .vimrc

 set mouse=a set ttymouse=xterm 

Notes: see also: Scrolling Inside Vim in Mac Terminal

+8
Feb 19 '14 at 18:04
source share



All Articles