sudo apt-get install byobu
or when using ArchLinux:
sudo pacman -Sy byobu
There are some important shortcut to remember:
- F2 to create tab (or subsession)
- F3 to switch to previous tab
- F4 to switch to next tab
- F6 to exit from byobu, but the commands would keep running, type byobu on shell to get back to last session
- shift+F2 to split horizontally
- ctrl+F2 to split vertically
- shift+F3/F4 to switch between split region
- ctrl+F3/F4 to swap between split region
- alt+PgUp/PgDn to enter scrollback mode (not shift+PgUp/PgDn like normal terminal)
Here's some screenshot about Byobu in action: