Ubuntu Server (17.10 and 16.04) using Byobu: Ctrl+F2 does not split screen in vertical
Shift+F2 splits screen in horizontal and all other key shortcuts work fine, just Ctrl+F2 does not have any effect on Byobu screen
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityUbuntu Server (17.10 and 16.04) using Byobu: Ctrl+F2 does not split screen in vertical
Shift+F2 splits screen in horizontal and all other key shortcuts work fine, just Ctrl+F2 does not have any effect on Byobu screen
$ sudo nano /usr/share/byobu/keybindings/f-keys.tmux
# Change
bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_current_path}"
# To
bind-key -n C-H display-panes \; split-window -h -c "#{pane_current_path}"
# Save the file
$ byobu-keybindings
Byobu keybindings: [OFF]
$ byobu-keybindings
Byobu keybindings: [ON]
Now, press Ctrl-H
and it should split horizontally. Do this for any other keys that might be un-F'd.
C-a |
which is the tmux shortcut for performing a vertical split is redefined in /usr/share/byobu/keybindings/tmux-screen-keys.conf
, but C-a %
is not. I added another entry similar to the split -v
one (one line to unbind %, and another to perform a horizontal split, like the vertical one but with an added -h switch), and now the horizontal split via C-a %
retains the current path. This was annoying me for a while. Many thanks!
Oct 23, 2022 at 21:42
Same behavior on Ubuntu Server 18.04, Ctrl + F6 does not kill the split in focus either.
From Dustin Kirkland, the author and maintainer of Byobu, this seems to be a normal behavior for the TTY console as he explained :
"Sadly, the actual console TTY in Linux is not an actual Xterm, which is able to capture and support far more key presses. I have long suspected that the Linux TTY could be taught to support the Shift-F-keys, though I've never gotten around to trying. Sorry."