cmd: ufetch: use 3-bit colour ANSI codes
authorSam Day <me@samcday.com>
Mon, 3 Feb 2025 16:42:20 +0000 (16:42 +0000)
committerCaleb Connolly <caleb.connolly@linaro.org>
Wed, 26 Feb 2025 13:48:27 +0000 (13:48 +0000)
commit6267ce556595e0586aee3a7d63042d105dc3fa4e
tree8656574b08e9579d4cc76a714a6a7e328d1723a5
parent554562f7b50d780eea64763d444b6ddd2c216072
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 <me@samcday.com>
Tested-by: Alexey Minnekhanov <alexeymin@postmarketos.org>
Tested-by: Ferass El Hafidi <funderscore@postmarketos.org>
cmd/ufetch.c