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?
Asked
Active
Viewed 2,480 times
3
Ilias Karim
- 453
2 Answers
5
The latest versions of less support mouse input with the --mouse and related flags.
Nomas Prime
- 167
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
- 1,072