From 488ad5dc77ef4d36b75dc09f711b48a938d26003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 5 Jul 2019 09:09:58 +0200 Subject: [PATCH] csi: manually erase alt screen when switching to it --- csi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csi.c b/csi.c index aecff2c1..ada6183e 100644 --- a/csi.c +++ b/csi.c @@ -621,7 +621,9 @@ csi_dispatch(struct terminal *term, uint8_t final) tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); - term_erase(term, 0, term->rows * term->cols); + + grid_memset(term->grid, 0, 0, term->rows * term->cols); + term_damage_erase(term, 0, term->rows * term->cols); } break;