Skip to content

Instantly share code, notes, and snippets.

@ipan
Created January 18, 2018 00:48
Show Gist options
  • Save ipan/8cecb9dc09842848f05e08beb147c161 to your computer and use it in GitHub Desktop.
Save ipan/8cecb9dc09842848f05e08beb147c161 to your computer and use it in GitHub Desktop.
screen or byobu scroll up and down #screen #byobu #scroll

scroll up and down

Ctrl-A [

This will activate copy mode in GNU/screen. Now, you can scroll up/down and look at your data. Use the following keys:

  1. Ctrl-u and Ctrl-d scroll the display up/down by the specified amount of lines while preserving the cursor position. (Default: half screen-full).
  2. Ctrl-b and Ctrl-f scroll the display up/down a full screen.

From the man page - following movement keys can be used in copy mode:

  • h, j, k, l move the cursor line by line or column by column.
  • 0, ^ and $ move to the leftmost column, to the first or last non-whitespace character on the line.
  • H, M and L move the cursor to the leftmost column of the top, center or bottom line of the window.
  • + and - positions one line up and down.
  • G moves to the specified absolute line (default: end of buffer).
  • | moves to the specified absolute column.
  • w, b, e move the cursor word by word.
  • B, E move the cursor WORD by WORD (as in vi).
  • C-u and C-d scroll the display up/down by the specified amount of lines while preserving the cursor position. (Default: half screen-full).
  • C-b and C-f scroll the display up/down a full screen.
  • g moves to the beginning of the buffer.
  • % jumps to the specified percentage of the buffer.

For searching use the following vi like syntax:

  • /SearchWord - Vi-like search forward.
  • ?SearchWord - Vi-like search backward.
@J4NS-R
Copy link

J4NS-R commented Jan 4, 2021

Press q to exit back to the terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment