csi: manually erase alt screen when switching to it

This commit is contained in:
Daniel Eklöf 2019-07-05 09:09:58 +02:00
parent c5fdc13ea4
commit 488ad5dc77
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

4
csi.c
View file

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