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

I'm using Byobu (with Tmux, inside of gnome-terminal) and I have a problem with its keybindings (which I probably fail to understand).

I launch byobu, open a few windows then, from one of these windows, I ssh into another machine and launch byobu there. No matter if I press Ctrl-c or Ctrl-a-c, I'm not sure how to create and switch between windows in this remote session.

Note: if I enter Shift-F12 I can switch between windows using the Function keys in the remote session but this is less than ideal as I also need to switch between windows in the main session.

Any ideas?

Thanks in advance for your help.

share|improve this question
1  
Having two tmux instances is really confusing: consider avoiding it if you can. That said, I did answere your question. –  Jennifer Wilson Mar 24 '13 at 11:44

2 Answers 2

up vote 8 down vote accepted

I'm assuming that you configured byobu to use Ctrl-a as tmux's escape sequence.

The commands that you type in your terminal are first handled by your local tmux instance, then handled by the nested tmux session. This means you need to escape twice to go to the nested instance:

Ctrl-a c # opens a window in your local session
Ctrl-a Ctrl-a c # opens a window in your remote session
share|improve this answer
2  
One additional idea: if you do this often, change the command key for the inner machine to something else, like maybe ^B. –  poolie Mar 24 '13 at 14:39
1  
doesn't work for me. Double ctrl-a switch to another tab of the local byobu session –  green Mar 14 at 23:04
    
@green I'm experiencing the same issue, pressing two times Ctrl-a changes the tab in the outer session. –  logoff Jun 30 at 12:07

I found using Shift-F12 to toggle on/off the outer byobu's keybindings is a bit easier to remember and use. The only new key to remember is Shift-F12, and then the inner byobu can be controlled with the normal F- keybindings.

Found that solution here http://askubuntu.com/a/243063.

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.