Skip to content

Instantly share code, notes, and snippets.

@zhiguangwang
Last active April 12, 2016 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhiguangwang/a91a4b95cce60cfda7b45da934ad97f8 to your computer and use it in GitHub Desktop.
Save zhiguangwang/a91a4b95cce60cfda7b45da934ad97f8 to your computer and use it in GitHub Desktop.
Increase scrollback buffer of GNU screen

The default setting is 100.

3 ways to set scrollback buffer:

From the .screenrc file

Edit ~/.screenrc:

defscrollback [num]

Same as the scrollback command except that the default setting for new windows is changed. Initial setting is 100.

From the command line when you start screen

-h [num]

Specifies the history scrollback buffer to be num lines high.

From within screen

using the Ctrl+a : command:

scrollback [num]

Set the size of the scrollback buffer for the current windows to num lines. The default scrollback is 100 lines.

To view the scrollback buffer value of current session, use Ctrl+a Esc command.

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