![]() It gets a bit more complicated once you throw screen into the mix. The consoles on some systems also support limited scrollback. The terminal emulator has a functionality that records what's on the screen and lets you scroll up and down in it. The buffer will always contain the most recent thousand lines of output that were displayed on your screen, and you can scroll up to look at earlier output at any time.ĭoes it mean "function" as in "subroutine" or as in "feature"? As soon as get the 1001st line of output the first line in the buffer is erased, and the furthest back you can scroll will be the second line of your session. 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: Or does vim use its own scrollback buffer that is somehow overlaid on top of the parent scrollback buffer?.Is this why a program like vim can "clear" my entire terminal window, because it gets temporary access to the parent shell's scrollback buffer?.This file had a lot of white space at the top, and it seems the "view" my terminal emulator shows me is simply the bottom few lines of the of the buffer. I also used screen to dump the scrollback to a file. In a "stack" of programs, such as vim launched in screen launched in bash launched in ssh launched in a terminal emulator, which of these programs are controlling the scrollback buffer?.Is there is a Unix standard or API for this scrollback buffer?.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): 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?
0 Comments
Leave a Reply. |