diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-30 12:50:52 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-04-30 12:50:52 +0200 |
| commit | aaf165bcbaf86948780c61cd9b877d6b0cf414f1 (patch) | |
| tree | 16d5a0aec88cde5b3ef783c6cb8efc36c5f8bec0 | |
| parent | 2fe11f2546b08ab6257bdb594606600087c270e6 (diff) | |
only make color bright when code < 8
| -rw-r--r-- | config.h | 2 | ||||
| -rw-r--r-- | swt.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -162,7 +162,7 @@ static uint32_t colors[] = { * Default colors (colorname index) * foreground, background, cursor, reverse cursor */ -unsigned int defaultfg = 258; +unsigned int defaultfg = 7; unsigned int defaultbg = 259; unsigned int defaultcs = 256; static unsigned int defaultrcs = 257; @@ -225,10 +225,10 @@ get_color(uint32_t i, ushort mode) } if ((mode & ATTR_BOLD)) { - if (!BETWEEN(i - 8, 0, sizeof(colors) / sizeof(uint32_t))) { + if (!BETWEEN(i + 8, 0, sizeof(colors) / sizeof(uint32_t))) { return colors[i]; } - return colors[i - 8]; + return colors[i + 8]; } return colors[i]; |