aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-26 15:07:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:24:33 +0000
commit74a1fa9e00058589c30454a87b68527fd27ead9b (patch)
tree0d5b45c6ce76b9f615312d76b38c8c7fa1cafe20
parentterm: modify term_fill() to optionally reset the SGR attributes (diff)
vt: update DECALN to use term_fill()
-rw-r--r--vt.c12
1 files changed, 3 insertions, 9 deletions
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] == '#' */