Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use mouse in Byobu

📅 2016-Jan-28 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

In Byobu, you will find that many mouse operations work just like in a raw terminal emulator. For example, you can select content by holding down the left-button and moving the mouse. And pasting by pressing the middle-button. However, you will find that the mouse operations are not Byobu-aware or Tmux-aware. For example, you can select text that spans across two split views.

Byobu/Tmux has support for mouse operations. When enabled, the mouse operations seem more natural and aware of the split views and windows of Byobu/Tmux. For example, it can be useful to use the mouse for operations such as selecting a split, resizing a split and for scrolling the console content to view history. However, note that such mouse support is turned off by default.

# Enable mouse support including scrolling
set -g mouse on 
# Versions prior to 2.1 may want this too:
set -g mouse-utf8 on

Restart Byobu to see the effect.

Tried with: Byobu 5.77 and Ubuntu 14.04