Byobu configuration menu escape / exit always closes the tab

byobuhomebrewmenuosx

I've been using byobu for ~4 years at this point and I do not remember this behavior before. If I press F1 (this always happens by accident actually, with the exception of initial setup I never want to see this menu again) which brings up the byobu configuration menu the normal way to exit is to press the escape key. This used to bring me right back to the byobu tab I was on. But now, it closes the current tab, making me lose that tab. I can't tell if the session / programs are still running (haven't tested anything really).

How do I fix this behavior so it doesn't close? Is it a new bug / change in behavior? Or is there some potential odd thing in my setup that could be causing this?

I'm using a mac.

Best Answer

Add the following lines to the ~/.byobu/keybindings.tmux file:

unbind-key -n F1
unbind-key -n F9
bind-key F1 new-window -n config byobu-config
bind-key F9 new-window -n config byobu-config

This removes a -k argument of the new-window command which kills the existing window and replaces it. I don't know if this issue affects other operating systems; I suspect this is a macOS X issue.