Mouse scrolling less pager output in tmux session

0

I use export LESS=-R to enable scrolling through less output using mouse scroll. It doesn’t work in tmux. For vim, the solution was to add set mouse=a. What is the equivalent option for less assuming there is one at all?

Ilias Karim

Posted 2019-10-10T16:00:55.667

Reputation: 233

Possible duplicate of Pass mouse events through tmux

– Kamil Maciorowski – 2019-10-17T14:26:39.470

Answers

0

less does not support the mouse. Probably your terminal sends Up and Down keys for the mouse wheel for applications that don't support the mouse, but tmux does not do this by default. There is some information on this and an example of key bindings to do this here: https://github.com/tmux/tmux/issues/1320#issuecomment-381952082

Nicholas Marriott

Posted 2019-10-10T16:00:55.667

Reputation: 366