Colors: don't use background color

It causes some weird behavior on some old terminals.

Ref: https://www.reddit.com/r/HomeServer/comments/16ys32a/guess_the_power_consumption_of_ryzen57600x/
This commit is contained in:
李通洲
2023-11-14 10:01:29 +08:00
parent 6ad83af2b5
commit 5d44efbf62
+2 -2
View File
@@ -19,7 +19,7 @@ void ffPrintColors(FFColorsOptions* options)
// 4%d: Set the background color
// 3%d: Set the foreground color
for(uint8_t i = 0; i < 8; i++)
printf("\033[4%d;3%dm███", i, i);
printf("\033[3%dm███", i);
puts(FASTFETCH_TEXT_MODIFIER_RESET);
@@ -34,7 +34,7 @@ void ffPrintColors(FFColorsOptions* options)
// 10%d: Set the background to the bright color
// 9%d: Set the foreground to the bright color
for(uint8_t i = 0; i < 8; i++)
printf("\033[1;4%d;3%d;10%d;9%dm███", i, i, i, i);
printf("\033[1;3%d;9%dm███", i, i);
}
else
{