<< Back to posts

Screen utility - Enable scrolling by default

Add `termcapinfo xterm* ti@:te@` to your `~/.screenrc` to enable normal scrolling

Posted on March 23, 2023 • Tags: screen linux cli

The default screen utility annoyingly requires you to hit Ctrl+A [ to scroll back through your terminal’s output buffer (by switching to “copy mode”). Otherwise, scrolling will cause you to cycle past your previous commands instead of scrolling back up in your terminal’s output.

To allow scrolling through your terminal’s output by default in screen (and avoid having to hit Ctrl+A [, add this to your ~/.screenrc file:

defscrollback 5000
termcapinfo xterm* ti@:te@

All credit goes to this website: https://slaptijack.com/system-administration/mac-os-x-terminal-and-gnu-screen-scrollback.html