scrollback: clear history on reset ref. #102

This commit is contained in:
Bakkeby 2023-09-12 16:02:19 +02:00
parent 41e6f9dce6
commit c1ef3ce0d8
1 changed files with 7 additions and 0 deletions

7
st.c
View File

@ -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);