summaryrefslogtreecommitdiff
path: root/st.desktop
diff options
context:
space:
mode:
authorMarcelo Lira <setanta@gmail.com>2025-03-02 06:30:42 -0300
committerMarcelo Lira <setanta@gmail.com>2025-03-03 16:12:29 -0300
commit1101a1c287dde44d36f294c3db902e5ec4299b20 (patch)
tree2c0546442fd5e9d8232eccde4020c17d23c9b71d /st.desktop
parenteadb75657d1df5f9bd0de39c3b7c2f7d57307f41 (diff)
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.
Diffstat (limited to 'st.desktop')
0 files changed, 0 insertions, 0 deletions