goa12z
goa12z

Reputation: 1

How can I enter the copy mode when I scroll the mouse while using Tmux in MinTTY?

Scrolling the mouse while using Tmux in MinTTY, the command history is scrolled.
It seems that MinTTY converts mouse scroll event to up/down key.

In the past, I tried the following terminal with tmux2.1 or later, the terminal was automatically set to copy mode.

The .tmux.conf options are all the same.
set -g mouse on

I want to stop sending up/down key when I scroll the mouse while using Tmux in MinTTY.
And if possible, I want to enter copy mode automatically like other terminals.

Current Environment:

Upvotes: 0

Views: 907

Answers (1)

goa12z
goa12z

Reputation: 1

temporary solution:

I want to stop sending up/down key when I scroll the mouse while using Tmux in MinTTY.
add this line to ~/.mintty

SuppressMouseWheel=scrollapp

I want to enter copy mode automatically like other terminals.

Shift + MousuWheel worked.
Shift may depend on the [Options->Mouse->Modifier for overriding default] setting.

Upvotes: 0

Related Questions