diff options
author | Timo Röhling <timo@gaussglocke.de> | 2024-02-01 05:27:58 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-03 16:08:49 +0300 |
commit | d1443515a862307ef46f3d902f632655bc54997e (patch) | |
tree | 6bde81c7063a1399c6aab2cf608f0fb2e8347897 /FAQ | |
parent | a8a9fdc32ffc5ee6e3953322a48e0a8dbceff5a7 (diff) | |
download | st-fork-d1443515a862307ef46f3d902f632655bc54997e.tar.gz |
Terminal scrollback with ring buffer
This patch adds a ring buffer for scrollback to the terminal. The
advantage of using a ring buffer is that the common case, scrolling with
no static screen content, can be achieved very efficiently by
incrementing and decrementing the starting line (modulo buffer size).
The scrollback buffer is limited to HISTSIZE lines in order to bound
memory usage. As the lines are allocated on demand, it is possible to
implement unlimited scrollback with few changes. If the terminal is
reset, the scroll back buffer is reset, too.
Source: https://st.suckless.org/patches/scrollback/
Diffstat (limited to 'FAQ')
0 files changed, 0 insertions, 0 deletions