vt: cell now tracks attributes (bold, italic, underline etc)

This commit is contained in:
Daniel Eklöf 2019-06-16 16:44:42 +02:00
parent 2a4c08b941
commit c5b60253a7
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 67 additions and 63 deletions

3
vt.c
View file

@ -186,8 +186,7 @@ action(struct terminal *term, enum action action, uint8_t c)
cell->c[1] = '\0';
}
cell->foreground = term->vt.foreground;
cell->background = term->vt.background;
cell->attrs = term->vt.attrs;
term->grid.cells[++term->grid.cursor].dirty = true;
term->grid.dirty = true;