From: Sam Day Date: Mon, 3 Feb 2025 16:42:20 +0000 (+0000) Subject: cmd: ufetch: use 3-bit colour ANSI codes X-Git-Tag: v2025.04-rc4~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6267ce556595e0586aee3a7d63042d105dc3fa4e;p=thirdparty%2Fu-boot.git cmd: ufetch: use 3-bit colour ANSI codes Currently, the 8-bit escapes are being used, which aren't supported by vidconsole_escape_char. Since the current usage maps directly to the 3-bit equivalents anyway, let's use those instead. With this change, the fetch output looks as fetching in the vidconsole as it does over serial! Signed-off-by: Sam Day Tested-by: Alexey Minnekhanov Tested-by: Ferass El Hafidi --- diff --git a/cmd/ufetch.c b/cmd/ufetch.c index ed5a856c7ab..46bd16824e6 100644 --- a/cmd/ufetch.c +++ b/cmd/ufetch.c @@ -24,8 +24,8 @@ DECLARE_GLOBAL_DATA_PTR; #define LINE_WIDTH 40 -#define BLUE "\033[38;5;4m" -#define YELLOW "\033[38;5;11m" +#define BLUE "\033[34m" +#define YELLOW "\033[33m" #define BOLD "\033[1m" #define RESET "\033[0m" static const char * const logo_lines[] = {