st

my build of st - simple terminal
git clone git://git.kocotian.pl/st.git
Log | Files | Refs | README | LICENSE

commit 594c9679118ad288191fca428ff660d274eda483
parent 4b84d56ea6df0b7af65cfba6c20cefef78af006a
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 23 Dec 2020 19:57:16 +0100

foreground color update, bold is not bright

Diffstat:
Mconfig.def.h | 2+-
Mpatches/st-bold-is-not-bright-20190127-3be4cf1.diff | 0
Mx.c | 4----
3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -127,7 +127,7 @@ static const char **colorname; * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ -unsigned int defaultfg = 7; +unsigned int defaultfg = 15; unsigned int defaultbg = 0; unsigned int defaultcs = 256; unsigned int defaultrcs = 257; diff --git a/patches/st-bold-is-not-bright-20190127-3be4cf1.diff b/patches/st-bold-is-not-bright-20190127-3be4cf1.diff diff --git a/x.c b/x.c @@ -1400,10 +1400,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i bg = &dc.col[base.bg]; } - /* Change basic system colors [0-7] to bright system colors [8-15] */ - if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7)) - fg = &dc.col[base.fg + 8]; - if (IS_SET(MODE_REVERSE)) { if (fg == &dc.col[defaultfg]) { fg = &dc.col[defaultbg];