From 32fc8d098ed058179ce4a2fdf0d09b6c2a561879 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Fri, 7 Nov 2025 19:53:01 -0500 Subject: ansi --- vui.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vui.c') diff --git a/vui.c b/vui.c index 258b7f1..a73e15f 100644 --- a/vui.c +++ b/vui.c @@ -423,6 +423,11 @@ static void attr_chg(VuiAttr *ptr, VuiAttr to) { VuiAttr from = *ptr; if (from == to) return; + /* bold colors will keep the terminal bold, even on changing after */ + if ((from & 8) && (~to & 8)) { + from |= A_BOLD; + } + int attr_chg_count = stdc_count_ones(ATTR_A(from) ^ ATTR_A(to)); int chg_attr = (attr_chg_count != 0); if (!chg_attr) goto chg_colors; -- cgit v1.2.3