

For the first thousand lines of output in your session you just append to the buffer, and you can scroll up right to the start of your session. Usually there will be a limit configured in the terminal of how many lines it keeps track of before it starts to forget. If you haven't scrolled up any, what you're looking at is the tail end of the buffer. You can think of the scrollback buffer as a long page of logged output and your terminal window as a window looking at just part of it at any one time. It's entirely terminal functionality to let you look at past output that may have scrolled past you or to check on what something said earlier. It contains all the text that has been displayed on the screen, including both standard output and standard error from every program you run in the terminal. The scrollback buffer is implemented by your terminal emulator ( xterm, Konsole, GNOME Terminal). I'll try to answer your questions in turn, but first a general description:

Does it mean "function" as in "subroutine" or as in "feature"?.This is made possible by a buffer created just for this purpose between the video adapter and the display device the scrollback buffer. Scrollback is a function that is implemented in a text console to allow the user to go back to view the lines of text which have scrolled off the screen. Here is the only definition of "scrollback" I found so far (in the archlinux wiki): Note too that when you change it interactively! The effect is immediate and take over the default value! ScrollingĬTRL+ A followed by ESC (to enter the copy mode).What are "scrollback" and "scrollback buffer" in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr? (in the illustration i set it to 1 000 000) Importantly the buffer size is the number after the + sign screenrc run at the screen creation! And it make sense! Just as with a normal console and shell launch!Īnd all the new created screens will have the set value! Checking the screen effective buffer size

screenrc! The already running screen at re-attach will not take effect! The. Or in one command > echo "defscrollback 1000000" > ~/.screenrc What you need to know is if the file is not created ! You create it ! > cd ~ & vim. screenrc (in home)ĭefscrollback and not scrollback (def stand for default) Which is done by adding defscrollback 1000000 to. So it's not a global setting! And the permanent default setting

You open another new screen! And the value is reset again to default! You detach from the screen and come back! It will be always the same. As Already mentioned we have two ways! Per screen (session) interactive settingĪnd it's done interactively! And take effect immediately!ĬTRL + A followed by : And we type scrollback 1000000 And hit ENTER
