Byobu: Difference between revisions

From Han Wiki
Jump to navigation Jump to search
→‎Basic: add new Ctrl keys when function keys are disabled
Line 4: Line 4:
== Basic ==
== Basic ==


<code>F2</code> or <code>Ctrl + a</code> <code>c</code> - Create a new session
<code>F2</code> or <code>Ctrl + a + c</code> - Create a new session


<code>F3</code> or <code>Ctrl + a</code> <code>Ctrl + a</code> - Go back to the previous session
<code>F3</code> or <code>Ctrl + a + a</code> - Go back to the previous session


<code>F4</code> - Go to the next session
<code>F4</code> or <code>Ctrl + a + n</code> - Go to the next session


<code>F7</code> - Scrollback/search mode (Press Enter to exit)
<code>F7</code> or <code>Ctrl + a + [</code> - Scrollback/search mode (Press Enter to exit)


<code>F8</code> or <code>Ctrl + a</code> <code>A</code> - Rename the screen
<code>F8</code> or <code>Ctrl + a + A</code> - Rename the screen
 
<code>F9</code> - Configuration menu


<code>F9</code> or <code>Ctrl + a + @</code> - Configuration menu


== Utility ==
== Utility ==

Revision as of 12:54, 5 September 2019

keyboard shortcuts

Basic

F2 or Ctrl + a + c - Create a new session

F3 or Ctrl + a + a - Go back to the previous session

F4 or Ctrl + a + n - Go to the next session

F7 or Ctrl + a + [ - Scrollback/search mode (Press Enter to exit)

F8 or Ctrl + a + A - Rename the screen

F9 or Ctrl + a + @ - Configuration menu

Utility

F5 - Refresh all status notifications

F6 - Detach from the session and logout

Ctrl + a <0-9> - Switch to screen #0-9 (quick toggle)

Ctrl + a " - View a list of the current screens, which will allow you to select one from the list

Ctrl + a \ - Kill all of the sessions and terminate


Split window management

Shift + F2 or Ctrl + a | - Split window horizontally

Ctrl + F2 or Ctrl + a S or Ctrl + a % - Split window vertically

Shift + F5 - Collapse all splits

Ctrl + a Tab - Focus on the next window

Ctrl + a X - Close the current window

Ctrl + a :resize +N - Increase the height

Ctrl + a :resize -N - Decrease the height

Ctrl + a :resize N - Set height

Ctrl + a :resize = - Make all windows equally high

Ctrl + a :resize max - Maximize the height

Ctrl + a :resize min - Minimize the height

Miscellaneous

Ctrl + a x - Lock the terminal

Ctrl + a d - Detach the whole screen session and fork to the background. Very useful for remote sessions you want to leave open. The command "screen -r" will resume your screen session.

Ctrl + a Esc - Scroll up through your command line "history" and see what output you previously got. Hitting <Escape> again cancels it.

Ctrl + a :help - Show screen keybindings (if using screen)


Possibly deprecated

Shift + F3 - Focus on next split

Shift + F4 - Focus on previous split

Shift + F6 - Detach from the session, but do not logout

Ctrl + a :resize-pane -L 20 - Resize increase left of current window pane by 20 units (other available ones are -D, -R, -U)

Ctrl + a :clear-history - clear history in the viewing buffer


Untested

Alt + F5 - Toggle UTF-8

Ctrl + F5 - Reconnect any SSH/GPG sockets or agents


Nested remote session

Shift+F12 - Toggle the outer byobu's keybindings on or off

Ctrl+a a c - Create a new session

links