billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=cb531b5d9b5c06edee92470850a253970fff8809
commit cb531b5d9b5c06edee92470850a253970fff8809 Author: Boris Faure <[email protected]> Date: Sun Sep 6 00:39:28 2015 +0200 correctly set bold, even if textgrid do not support it (yet) --- src/bin/termio.c | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 4357e42..b416b2d 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -4709,9 +4709,14 @@ _smart_apply(Evas_Object *obj) if (inv) tc[x].bg = COL_INVERSEBG; else tc[x].bg = COL_INVIS; tc[x].bg_extended = 0; - tc[x].double_width = 0; tc[x].underline = 0; tc[x].strikethrough = 0; + tc[x].bold = 0; +#if defined(SUPPORT_ITALIC) + tc[x].italic = 0; +#elif defined(SUPPORT_DBLWIDTH) + tc[x].double_width = 0; +#endif } else { @@ -4727,11 +4732,14 @@ _smart_apply(Evas_Object *obj) tc[x].bg_extended = 0; tc[x].underline = 0; tc[x].strikethrough = 0; - tc[x].fg = COL_INVIS; - tc[x].bg = COL_INVIS; -#if defined(SUPPORT_DBLWIDTH) + tc[x].bold = 0; +#if defined(SUPPORT_ITALIC) + tc[x].italic = 0; +#elif defined(SUPPORT_DBLWIDTH) tc[x].double_width = 0; #endif + tc[x].fg = COL_INVIS; + tc[x].bg = COL_INVIS; blk = termpty_block_get(sd->pty, bid); if (blk) { @@ -4761,7 +4769,10 @@ _smart_apply(Evas_Object *obj) tc[x].bg_extended = 0; tc[x].underline = 0; tc[x].strikethrough = 0; -#if defined(SUPPORT_DBLWIDTH) + tc[x].bold = 0; +#if defined(SUPPORT_ITALIC) + tc[x].italic = 0; +#elif defined(SUPPORT_DBLWIDTH) tc[x].double_width = cells[x].att.dblwidth; #endif if ((tc[x].double_width) && (tc[x].codepoint == 0) && @@ -4813,16 +4824,18 @@ _smart_apply(Evas_Object *obj) tc[x].bg_extended = bgext; tc[x].underline = cells[x].att.underline; tc[x].strikethrough = cells[x].att.strike; + tc[x].bold = cells[x].att.bold; +#if defined(SUPPORT_ITALIC) + tc[x].italic = cells[x].att.italic; +#elif defined(SUPPORT_DBLWIDTH) + tc[x].double_width = cells[x].att.dblwidth; +#endif tc[x].fg = fg; tc[x].bg = bg; tc[x].codepoint = codepoint; -#if defined(SUPPORT_DBLWIDTH) - tc[x].double_width = cells[x].att.dblwidth; -#endif if ((tc[x].double_width) && (tc[x].codepoint == 0) && (ch2 == x - 1)) ch2 = x; - // cells[x].att.italic // never going 2 support // cells[x].att.blink // cells[x].att.blink2 } --
