mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-13 05:33:51 -04:00
term: use colors256 array for *all* colors
That is, remove the 'regular' and 'bright' color arrays. This is possible since the 256-color array is defined such that the first 16 colors map to the regular and bright colors.
This commit is contained in:
parent
65e4b93a03
commit
631e0c0870
5 changed files with 22 additions and 74 deletions
|
|
@ -61,10 +61,6 @@ term_reset(struct terminal *term, bool hard)
|
|||
term->blink.state = BLINK_ON;
|
||||
term->colors.fg = term->colors.default_fg;
|
||||
term->colors.bg = term->colors.default_bg;
|
||||
for (size_t i = 0; i < 8; i++) {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue