aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-21 15:56:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-21 15:56:21 +0000
commitd7aaeaedee981371f1137c058b60322155e9ba00 (patch)
tree68e8768734ec877b09bed43f533111bf62ce9263 /terminal.c
parentmain: fix debug logs (diff)
csi: move 256-color table into the terminal struct
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 2 insertions, 0 deletions
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};