diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-21 16:47:48 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-21 16:47:48 +0000 |
| commit | 631e0c0870d98a4b3f97c90a8f3d07d549fdf8fb (patch) | |
| tree | 9de02fa30d0ff9fe42e794ea4a036cc472726601 /terminal.c | |
| parent | osc: fix indexing into 'bright' color array (diff) | |
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.
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 4 |
1 files changed, 0 insertions, 4 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; |
