I'm used to tmux, so I want Byobu to use Ctrl+B as the escape sequence. I hit F9, Change escape sequence, and B.
But when I hit Ctrl+B on the shell, it moves one character back instead of letting byobu/tmux handle it.
I'm used to tmux, so I want Byobu to use Ctrl+B as the escape sequence. I hit F9, Change escape sequence, and B.
But when I hit Ctrl+B on the shell, it moves one character back instead of letting byobu/tmux handle it.
First, I typically don't use the
F9menu stuff, so this is relatively new to me. However, when I did that and pressedB(noctrlsince that is assumed/forced), it immediately worked correctly (without a restart). I'm not certain why it would not work with your configuration.Since
byobuis really keeping its own store of configuration items and forcingscreen/tmuxto use its versions, you can find what to change by looking in~/.byobu/, and how to change it by reading the respective man/help pages.You can edit
byobu's config files behind the scenes (not always a good idea, but should be acceptable here). Sincebyobuuses eitherscreenortmux(based on what is installed), the answer can reside in either~/.byobu/keybindings(for screen) or~/.byobu/keybindings.tmux.I played around with using both
screenandtmux... choose one (defaults totmuxif installed, I think) and go with it.First things first
Check to make sure that
echo $HOMEprints what you expect (not a blank line). If there is not a directory called.byobuwithin that home directory, then either thebyobuinstallation is dorked or you don't have the correct permissions set in your home directory; trymkdir "${HOME}/.byobu", and if it doesn't work than that could be part of your problem.screenFrom
man screenThe first line of
~/.byobu/keybindingsshould havebyobu's source command, so don't change it. After it, add the following:(This is taken verbatim from what
byobudid to my install. Historically -- since I usescreen/tmuxwithoutbyobumuch of the time -- I actually just set:This may not be the best way, and it has some historical kludgeness to it, but it works for me.)
tmuxSimilarly, from
man tmux:My
~/.byobu/keybindings.tmuxdoesn't have a source command, so my file only contained the following:If This Doesn't Work
Knowing your OS and software versions will be useful. I tested this on ubuntu-13.10 with byobu-5.60-0ubuntu1, screen-4.0.3-14ubuntu10, and tmux-1.8-4.