mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
csi: move 256-color table into the terminal struct
This commit is contained in:
parent
3efc30c6a1
commit
d7aaeaedee
4 changed files with 30 additions and 27 deletions
|
|
@ -65,6 +65,8 @@ term_reset(struct terminal *term, bool hard)
|
|||
term->colors.regular[i] = term->colors.default_regular[i];
|
||||
term->colors.bright[i] = term->colors.default_bright[i];
|
||||
}
|
||||
for (size_t i = 0; i < 256; i++)
|
||||
term->colors.colors256[i] = term->colors.default_colors256[i];
|
||||
term->print_needs_wrap = false;
|
||||
term->cursor = (struct coord){0, 0};
|
||||
term->saved_cursor = (struct coord){0, 0};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue