![]() screen, as mentioned above, is simulating scrollback itself. Your terminal provides the scrollback buffer for all the programs inside it, starting from your shell. In the case of vim and bash, they aren't controlling it at all (caveat, again, below). ![]() 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? The longer answer we'll get to at the bottom. The short answer is no, it's just provided by your terminal. ![]() Is there is a Unix standard or API for this scrollback buffer? At that point, screen is emulating the scrollback buffer itself - that's why you can copy and paste from it within the program, rather than only with (say) X selection. 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:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |