From d7aaeaedee981371f1137c058b60322155e9ba00 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 21 Aug 2019 17:56:21 +0200 Subject: csi: move 256-color table into the terminal struct --- terminal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index b7133186..3101056d 100644 --- a/terminal.c +++ b/terminal.c @@ -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}; -- cgit v1.3