term: prepare for configurable colors; add color variables to terminal

This commit is contained in:
Daniel Eklöf 2019-07-21 10:58:09 +02:00
parent b18478f9b6
commit 29d855d7c6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 19 additions and 10 deletions

4
csi.c
View file

@ -111,8 +111,8 @@ static void
sgr_reset(struct terminal *term)
{
memset(&term->vt.attrs, 0, sizeof(term->vt.attrs));
term->vt.attrs.foreground = term->foreground;
term->vt.attrs.background = term->background;
term->vt.attrs.foreground = term->colors.fg;
term->vt.attrs.background = term->colors.bg;
}
static const char *