X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-terminal%2Fterm-parser.c;h=d8206a46ba30872af7513f8c36cf3cbabab7eec4;hb=fbf7dcb5886f4077ee0dea618447ab488ff148fc;hp=8ec6345d601d41865bcefb39f21e75f80165373a;hpb=56dec05d29098b151421625c68525c2c3961e574;p=elogind.git diff --git a/src/libsystemd-terminal/term-parser.c b/src/libsystemd-terminal/term-parser.c index 8ec6345d6..d8206a46b 100644 --- a/src/libsystemd-terminal/term-parser.c +++ b/src/libsystemd-terminal/term-parser.c @@ -100,8 +100,8 @@ static uint32_t term_color_to_argb32(const term_color *color, const term_attr *a case TERM_CCODE_BLACK ... TERM_CCODE_LIGHT_WHITE: t = color->ccode - TERM_CCODE_BLACK; - /* bold causes light colors */ - if (t < 8 && attr->bold) + /* bold causes light colors (only for foreground colors) */ + if (t < 8 && attr->bold && color == &attr->fg) t += 8; r = palette[t * 3 + 0];