From 631e0c0870d98a4b3f97c90a8f3d07d549fdf8fb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 21 Aug 2019 18:47:48 +0200 Subject: 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. --- terminal.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 3101056d..593bf8ff 100644 --- a/terminal.c +++ b/terminal.c @@ -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; -- cgit v1.3