Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
42
rated 0 times [  42] [ 0]  / answers: 1 / hits: 8310  / 1 Year ago, tue, march 21, 2023, 3:12:20

I know Byobu is a terminal multiplexer and mouse is not a priority, but I still would like to know if there is a way to focus on a split using mouse click instead of keyboard shortcuts.



In negative case, it certainly would be a great feature.


More From » byobu

 Answers
0

Yes, this is very much possible.


You simply need to turn on mouse support in your ~/.byobu/.tmux.conf configuration.


Add the following:


set -g mouse-select-pane on
set -g mouse-select-window on
set -g mouse-resize-pane on
set -g mouse-utf8 on

This will allow you to:



  • select a split by clicking in it

  • select a window by clicking on it in your status bar

  • resize a split by grabbing the border and dragging


However, you may now find it difficult to use your mouse to click on some text, and highlight (select) it. To do this, you'll now need to use either Shift-LeftClick or Ctrl-LeftClick.


Full disclosure: I am the author and maintainer of Byobu.


[#29549] Wednesday, March 22, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oreera

Total Points: 472
Total Questions: 121
Total Answers: 116

Location: Mayotte
Member since Thu, Dec 17, 2020
3 Years ago
;