diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-21 15:56:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-21 15:56:21 +0000 |
| commit | d7aaeaedee981371f1137c058b60322155e9ba00 (patch) | |
| tree | 68e8768734ec877b09bed43f533111bf62ce9263 /terminal.c | |
| parent | main: fix debug logs (diff) | |
csi: move 256-color table into the terminal struct
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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}; |
