From bdfd1a250d5cafff5c0c160c88a97de2d25a3933 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 25 Apr 2006 17:46:49 +0000 Subject: [PATCH] * Fixed bold support in ANSI loader. --- cucul/import.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cucul/import.c b/cucul/import.c index 8e4fdd3..7edeb2c 100644 --- a/cucul/import.c +++ b/cucul/import.c @@ -399,6 +399,10 @@ void _manage_modifiers(char c, int *fg, int *bg, int *save_fg, int *save_bg) *bg = CUCUL_COLOR_DEFAULT; break; case 1: // BOLD + if(*fg < 8) + *fg += 8; + if(*bg < 8) + *bg += 8; break; case 4: // Underline break;