Colors (Linux): fix light color doesn't work on Linux tty

Ref: https://github.com/fastfetch-cli/fastfetch/issues/1141#issuecomment-2271060911
This commit is contained in:
Carter Li
2024-08-07 10:14:57 +08:00
parent 8396f000e1
commit fe5b07e0d0
+6
View File
@@ -52,6 +52,12 @@ void ffPrintColors(FFColorsOptions* options)
ffStrbufClear(&result);
}
#ifdef __linux__
// Required by Linux Console for light background to work
if (options->symbol == FF_COLORS_SYMBOL_BACKGROUND)
ffStrbufAppendS(&result, "\e[5m");
#endif
// 9%d: Set the foreground to the bright color
for(uint8_t i = max(options->block.range[0], 8); i <= options->block.range[1]; i++)
{