Search code examples
gnu-screen

GNU screen: how to check current scrollback value?


In GNU screen, I know that I can change the scrollback (buffer size) using this command:

<Ctrl-a>:scrollback 10000

as well as adding this line in .screenrc:

defscrollback 10000

But How do I check what the current value is? (For clarification, looking at the .screenrc file and locating the line with defscrollback is not the solution I'm looking for.)

Thanks!


Solution

  • As soon as you enter scrollback mode (CtrlA then Esc), you should see a status line like

    Copy mode - Column 71 Line 25(+3000) (80,25)
    

    The 3000 is the scrollback size. As long as you're in scrollback mode, you can use CtrlG to see a shorter version of that status line. If you're no longer at the bottom, the +3000 will be changed to show how far you've scrolled back. It tells how many lines are available above the currently displayed region, so +0 means you've scrolled back all the way.