diff --git a/vt.c b/vt.c index caa53e62..beb26670 100644 --- a/vt.c +++ b/vt.c @@ -560,15 +560,9 @@ action_esc_dispatch(struct terminal *term, uint8_t final) case '#': switch (final) { - case '8': - for (int r = 0; r < term->rows; r++) { - struct row *row = grid_row(term->grid, r); - for (int c = 0; c < term->cols; c++) { - row->cells[c].wc = U'E'; - row->cells[c].attrs = (struct attributes){0}; - } - row->dirty = true; - } + case '8': /* DECALN */ + for (int r = 0; r < term->rows; r++) + term_fill(term, r, 0, 'E', term->cols, false); break; } break; /* private[0] == '#' */