commit c1ef3ce0d84a58b0ce35f7fe62a24ab46e11117e
parent 41e6f9dce6afcac2276a6eddaba0133b0af803ac
Author: Bakkeby <bakkeby@gmail.com>
Date: Tue, 12 Sep 2023 16:02:19 +0200
scrollback: clear history on reset ref. #102
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/st.c b/st.c
@@ -3077,6 +3077,13 @@ eschandle(uchar ascii)
#endif // CSI_22_23_PATCH
resettitle();
xloadcols();
+ #if SCROLLBACK_PATCH
+ if (!IS_SET(MODE_ALTSCREEN)) {
+ term.scr = 0;
+ term.histi = 0;
+ term.histn = 0;
+ }
+ #endif // SCROLLBACK_PATCH
break;
case '=': /* DECPAM -- Application keypad */
xsetmode(1, MODE_APPKEYPAD);