Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've seen elsewhere that scrolling via the mouse wheel (and other mousy events) can be enabled for tmux.. can this feature also be enabled in byobu (over tmux) and how?

share|improve this question

3 Answers 3

up vote 9 down vote accepted

Yes, this is possible. You just have to enter scrollback mode first.

Simply press F7, and then use your mouse scroll wheel. Finally, press ESC to exit scrollback mode.

It appears that some terminals won't allow you to scroll using your mouse still. For Gnome Terminal, untick the Scroll on keystroke option in the profile preferences (tab Scrolling).

share|improve this answer
1  
Hmm, that doesn't seem to work for me. Instead I get the whole terminal scrolling, making the byobu session disappear off the screen? Am I missing some additional setting somewhere? (Using gnome-terminal to ssh into server where byobu session is running) –  Ashimema Oct 17 '12 at 9:16
1  
What if you press alt-pageup, and then try using the scroll wheel...does that work? –  Dustin Kirkland Oct 22 '12 at 14:38
1  
Confirmed working with Konsole. Confirmed ineffective in Gnome Terminal by default - had to untick Scroll on keystroke option in profile preferences. –  gertvdijk Jan 5 '13 at 21:21
    
@DustinKirkland sorry to revive this old thread, but I am still not able to scroll with the mouse.. I have disabled Scroll on Keystroke, and pressing alt-pageup is not doing anything.. I am testing this on mints Mate terminal (which should be reasonably similar to gnome terminal from GTK2) –  Karthik T Aug 3 '13 at 3:16
    
@DustinKirkland also I notice that I need to press Enter to exit the mode, not Esc as you indicate. Has this changed recently perhaps? –  Karthik T Aug 3 '13 at 3:17

If you still have this problem,

Try ALT + F12

In my case, this enables mouse scrolling on byobu

share|improve this answer
    
It can help the poster if you indicate where you found this shortcut –  Charles Green Jun 30 at 5:48
    
There's Help menu in configuration. You can find it by running byobu-config on the terminal or simply press Shift+F1 –  RNA Jul 1 at 1:52

If you just want scrollback and you don't want to engage the tmux "mouse-mode" (which will interfere with your ability to cut-n-paste with the mouse) just add the following to .byobu/.tmux.conf

set -g terminal-overrides 'xterm*:smcup@:rmcup@'

Now your terminal's scrollback works normally and you don't need to hit any special keys to engage the mouse. The drawback is that the terminal only knows about a single screen. You'll still need to use "mouse mouse" to scroll a screen other than the most recent (such as to get to a long-scrolling log buffer), but if you just want to scroll up to see what just scrolled off your screen, this will fix it! It doesn't know about split screens either. BTW, the "mouse mode" can be set automatically in your config files. You paste with your command key (usually CTRL-A) followed by the ] key. The mouse selection is cut automatically in mouse mode, but you'll have to get out of mouse mode or hold down SHIFT to get the usual clipboard behavior that allows you to paste into another GUI app.

Recommendation: Since byobu already uses multiple terminal sessions inside itself, you don't need to use it with multiple terminals. So, instead of having a hot-key that opens a new terminal, I assign my "open terminal" hot-key to tilda. Tilda drops-down from whatever workspace you are currently using (shows on all workspaces) and it stays running so it is always available. This works nicely with byobu because I now have 1 place for all my shell sessions (you can set tilda to run byobu instead of a normal shell and re-run it if you accidently exit your shell). Further, your terminal sessions out-last your GUI because you are using byobu. I log into my system with ssh and automatically get my byobu session (great to monitor compiles, etc) and the byobu virtual window resizes to my cell phone screen. When I reorient the phone, the byobu window on my desktop screen changes with the phone orientation - MAGIC! Very impressive to Windows users.

Next is to use enlightenment's terminal hacks to get a notification (from the GUI) when a terminal job finishes, but dbus permissions makes that iffy. If anyone gets this working with byobu please let me know!

-- Evan

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.