billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=4202010724daaad780c37207b2c10970e10c2223

commit 4202010724daaad780c37207b2c10970e10c2223
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Jan 18 00:13:29 2014 +0100

    fix bold issue with 256 colors
    
    test case was:
    echo -ne '\033[38;5;7m\033[48;5;0m\033[1mfoo'
---
 src/bin/termio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 4757d6e..48add38 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -1418,7 +1418,7 @@ _smart_apply(Evas_Object *obj)
                             t = fgext; fgext = bgext; bgext = t;
                             t = fg; fg = bg; bg = t;
                          }
-                       if (cells[x].att.bold) fg += 12;
+                       if ((cells[x].att.bold) && (!fgext)) fg += 12;
                        if (cells[x].att.faint) fg += 24;
                        if ((tc[x].codepoint != codepoint) ||
                            (tc[x].fg != fg) ||

-- 


Reply via email to