Change Ctrl+l behaviour

From now on, Ctrl+l scrolls up the screen and preserves the scrollback buffer.
Fixes #46.
This commit is contained in:
veltza 2022-07-01 14:59:03 +03:00
parent df36caf56b
commit a705b714b5
4 changed files with 121 additions and 65 deletions

1
st.h
View file

@ -148,6 +148,7 @@ typedef struct {
#if SCROLLBACK_PATCH
Line hist[HISTSIZE]; /* history buffer */
int histi; /* history index */
int histn; /* number of history entries */
int scr; /* scroll back */
#endif // SCROLLBACK_PATCH
int *dirty; /* dirtyness of lines */