csi: erase alt screen when enabling it

This commit is contained in:
Daniel Eklöf 2019-07-01 19:23:31 +02:00
parent 24395cf4cd
commit ee476a7e5a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -586,7 +586,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
if (term->grid != &term->alt) {
term->grid = &term->alt;
term->saved_cursor = term->cursor;
term_damage_all(term);
term_erase(term, 0, term->rows * term->cols);
}
break;