20

I want byobu running in gnome-terminal to:

  1. Interpret mouse wheel scrolling as scrolling up in the current byobu window.
  2. Allow me to select text with my mouse (eg, to copy it to the clipboard).

Is this possible? Alt+F12 will enable #1, but prevent me from selecting text. Otherwise, selecting works fine, but scrolling scrolls through gnome-terminal, and not the current byobu window.

3 Answers 3

20

You're right about Alt-F12, for toggling mouse mode on and off.

As for scrolling in the Byobu, you'd need to enter scrollback mode, using F7.

1
  • 2
    After scrolling, there is a way to select text just with keyboard? Nov 22, 2019 at 16:34
0

Hold Shift while selecting the text. Text will be copied (and pasted!) as if you're in Mouse: OFF mode.

And if you were as confused as I was about which clipboard this will copy text to, here's what I see:

Highlight text in... ...with mode Mouse: ON... ...with Shift OR mode Mouse: OFF...
xterm => ClipboardSelection => PrimarySelection
gnome-terminal => ClipboardSelection => PrimarySelection
konsole => ClipboardSelection => PrimarySelection
alacritty => ClipboardSelection => PrimarySelection AND ClipboardSelection
kitty => ClipboardSelection => PrimarySelection
1
  • alacritty copies into the ClipboardSelection is because it supports OSC 52 (the other terminals use VTE which refuses to fully implement it -- due to potential/theoretical security issues)
    – NeoH4x0r
    May 13, 2022 at 21:20
-1

SCROLLBACK, COPY, PASTE MODES
Each window in Byobu has up to 10,000 lines of scrollback history, which you can enter and navigate using the alt-pgup and alt-pgdn keys. Exit this scrollback mode by hitting enter. You can also easily copy and paste text from scrollback mode. To do so, enter scrollback using alt-pgup or alt-pgdn, press the spacebar to start highlighting text, use up/down/left/right/pgup/pgdn to select the text, and press enter to copy the text. You can then paste the text using alt-insert or ctrl-a-].

Above taken from: https://gist.github.com/inhumantsar/bf86ff1961cccdf8be06

NOTE: This copies into byobu(or tmux's) clipboard, I've not found a way of pasting outside of the byobo terminal yet.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .