csi: erase alt screen before activating it

This commit is contained in:
Daniel Eklöf 2019-07-15 13:59:05 +02:00
parent f63df93e15
commit 888de785b7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
csi.c
View file

@ -702,8 +702,10 @@ csi_dispatch(struct terminal *term, uint8_t final)
tll_free(term->alt.scroll_damage);
selection_cancel(term);
//grid_memclear(term->grid, 0, term->rows * term->cols);
//term_damage_erase(term, 0, term->rows * term->cols);
term_erase(
term,
&(struct coord){0, 0},
&(struct coord){term->cols - 1, term->rows - 1});
}
break;