mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
vt: update DECALN to use term_fill()
This commit is contained in:
parent
b3a84ba71b
commit
74a1fa9e00
1 changed files with 3 additions and 9 deletions
12
vt.c
12
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] == '#' */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue