Terminal scrollback with ring buffer
(apply st-scrollback-ringbuffer-0.9.2.diff) from the patch header: commit 0663bdf11a409961da5b1120741a69814da8ce65 Author: Timo Röhling <timo@gaussglocke.de> Date: Tue Nov 23 19:45:33 2021 +0100 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.
This commit is contained in:
2
x.c
2
x.c
@@ -60,6 +60,8 @@ static void zoom(const Arg *);
|
||||
static void zoomabs(const Arg *);
|
||||
static void zoomreset(const Arg *);
|
||||
static void ttysend(const Arg *);
|
||||
void kscrollup(const Arg *);
|
||||
void kscrolldown(const Arg *);
|
||||
|
||||
/* config.h for applying patches and the configuration. */
|
||||
#include "config.h"
|
||||
|
||||
Reference in New Issue
Block a user