mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user