The "screen" window manager allows specifying the desired size of the scrollback buffer.
E.g. when starting a new session: (source)
‘-h num’ Set the history scrollback buffer to be num lines high. Equivalent to the defscrollback command (see Copy).
Or when already inside a screen session with these commands: (source)
12.1.2 Scrollback — Command: defscrollback num Same as the scrollback command except that the default setting for new windows is changed. Defaults to 100. — Command: scrollback num Set the size of the scrollback buffer for the current window to num lines. The default scrollback is 100 lines. Use C-a i to view the current setting.
But I cannot seem to find documentation stating the maximum value for
num for any of above approaches.
So the question is: how to determine the maximum scrollback length for the screen utility?