csi: move 256-color table into the terminal struct

This commit is contained in:
Daniel Eklöf 2019-08-21 17:56:21 +02:00
parent 3efc30c6a1
commit d7aaeaedee
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 30 additions and 27 deletions

View file

@ -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};