haejeong87
haejeong87

Reputation: 957

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!

Upvotes: 12

Views: 2395

Answers (2)

GeertVc
GeertVc

Reputation: 1984

You can also issue the command Ctrl-A i to get the value of the scrollback size currently set for that particular window.

Upvotes: 5

user2404501
user2404501

Reputation:

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.

Upvotes: 10

Related Questions