fg 541 src/libsir/include/sir.h bool sir_settextstyle(sir_level level, sir_textattr attr, sir_textcolor fg, fg 86 src/libsir/include/sir/ansimacros.h # define SIR_COLOR(attr, fg, bg, s) \ fg 87 src/libsir/include/sir/ansimacros.h SIR_ESC_SEQ(#attr ";" #fg ";" #bg, s) SIR_ESC_SEQE("0;39;49") fg 137 src/libsir/include/sir/ansimacros.h # define SIR_COLOR(attr, fg, bg, s) s fg 268 src/libsir/include/sir/helpers.h sir_textcolor _sir_mkansifgcolor(sir_textcolor fg) { fg 269 src/libsir/include/sir/helpers.h return SIRTC_DEFAULT == fg ? 39 : fg < 8 ? fg + 30 : fg + 82; fg 280 src/libsir/include/sir/helpers.h sir_textcolor _sir_getansifgcmd(sir_textcolor fg) { fg 281 src/libsir/include/sir/helpers.h return SIRTC_DEFAULT == fg ? 39 : 38; fg 171 src/libsir/include/sir/types.h sir_textcolor fg; /**< Foreground color. */ fg 170 src/libsir/src/sir.c bool sir_settextstyle(sir_level level, sir_textattr attr, sir_textcolor fg, fg 174 src/libsir/src/sir.c fg, fg 145 src/libsir/src/sirtextstyle.c SIR_ESC, (uint8_t)style->attr, (uint8_t)_sir_mkansifgcolor(style->fg), fg 151 src/libsir/src/sirtextstyle.c (uint8_t)style->attr, (uint8_t)_sir_getansifgcmd(style->fg), fg 152 src/libsir/src/sirtextstyle.c (uint8_t)style->fg, (uint8_t)_sir_getansibgcmd(style->bg), fg 160 src/libsir/src/sirtextstyle.c (uint8_t)_sir_getansifgcmd(style->fg), _sir_getredfromcolor(style->fg), fg 161 src/libsir/src/sirtextstyle.c _sir_getgreenfromcolor(style->fg), _sir_getbluefromcolor(style->fg), fg 175 src/libsir/src/sirtextstyle.c sir_textcolor fg = SIRCM_16 == mode ? _sir_mkansifgcolor(style->fg) : style->fg; fg 178 src/libsir/src/sirtextstyle.c if (!_sir_validtextattr(style->attr) || !_sir_validtextcolor(mode, fg) || fg 182 src/libsir/src/sirtextstyle.c if (SIRTC_DEFAULT != style->fg && SIRTC_DEFAULT != style->bg && fg 183 src/libsir/src/sirtextstyle.c style->fg == style->bg) { fg 185 src/libsir/src/sirtextstyle.c " are identical; text would be invisible", style->fg, fg 187 src/libsir/src/sirtextstyle.c SIR_ASSERT(SIRTC_DEFAULT != style->fg && SIRTC_DEFAULT != style->bg && fg 188 src/libsir/src/sirtextstyle.c style->fg == style->bg);