[PATCH 3/5] fbconsole: add support for aixterm bright colors
Ahmad Fatoum
a.fatoum at barebox.org
Sun Jun 1 14:00:00 PDT 2025
We already support the global bold/bright modifier, but there are also
inherently bright color codes, apparently first added for AIX.
Teach barebox about them.
Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
drivers/video/fbconsole.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index cd1950a644cc..b399c044be94 100644
--- a/drivers/video/fbconsole.c
+++ b/drivers/video/fbconsole.c
@@ -516,6 +516,10 @@ static void fbc_parse_colors(struct fbc_priv *priv)
case 49:
priv->bgcolor = BLACK;
break;
+ case 90 ... 97:
+ priv->flags |= ANSI_FLAG_BRIGHT;
+ priv->color = code - 90;
+ break;
}
if (*str != ';')
--
2.39.5
More information about the barebox
mailing list