From e82dc664cdd2a46cee1f48d7f014e4de23fa872e Mon Sep 17 00:00:00 2001 From: "P.P.A" Date: Sat, 8 Jul 2023 15:21:31 +0200 Subject: fix for xresources --- config.def.h | 7 +++++++ config.h | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/config.def.h b/config.def.h index 9a678ec..d696dfd 100644 --- a/config.def.h +++ b/config.def.h @@ -132,10 +132,16 @@ static const char *colorname[] = { * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ +/* unsigned int defaultfg = 258; unsigned int defaultbg = 259; unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; +*/ +unsigned int defaultfg = 257; +unsigned int defaultbg = 256; +unsigned int defaultcs = 258; +static unsigned int defaultrcs = 256; /* * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81 @@ -204,6 +210,7 @@ ResourcePref resources[] = { { "background", STRING, &colorname[256] }, { "foreground", STRING, &colorname[257] }, { "cursorColor", STRING, &colorname[258] }, + { "alpha", FLOAT, &alpha }, { "termname", STRING, &termname }, { "shell", STRING, &shell }, { "minlatency", INTEGER, &minlatency }, diff --git a/config.h b/config.h index 9a678ec..d696dfd 100644 --- a/config.h +++ b/config.h @@ -132,10 +132,16 @@ static const char *colorname[] = { * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ +/* unsigned int defaultfg = 258; unsigned int defaultbg = 259; unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; +*/ +unsigned int defaultfg = 257; +unsigned int defaultbg = 256; +unsigned int defaultcs = 258; +static unsigned int defaultrcs = 256; /* * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81 @@ -204,6 +210,7 @@ ResourcePref resources[] = { { "background", STRING, &colorname[256] }, { "foreground", STRING, &colorname[257] }, { "cursorColor", STRING, &colorname[258] }, + { "alpha", FLOAT, &alpha }, { "termname", STRING, &termname }, { "shell", STRING, &shell }, { "minlatency", INTEGER, &minlatency }, -- cgit v1.2.3