To set an infinite scrollback for screen on Linux Mint 22.3 Cinnamon, add this line to your ~/.screenrc file:
Steps:
- Open or create the config file:
- Add the line above (or use a higher number if needed).
- Save (
Ctrl+O, then Enter) and exit (Ctrl+X).
- Restart
screen or start a new session.
Note: screen has no true "infinite" option—this sets the buffer to 1 million lines, which is effectively unlimited for most use cases. Adjust the number if you need more.