From 5d44efbf62561c6a71895ab942e03838e9eb04c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 14 Nov 2023 10:01:29 +0800 Subject: [PATCH] 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/ --- src/modules/colors/colors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/colors/colors.c b/src/modules/colors/colors.c index 239e2ec8b..8692c2cac 100644 --- a/src/modules/colors/colors.c +++ b/src/modules/colors/colors.c @@ -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 {