st
simple terminal
git clone https://9o.is/git/st.git
commit 80d7a253e8c27ee936f49690ef439b03bb2eadaa parent 0bc8324947fa3df3689b5d426c189ebbbf128ecf Author: Christoph Lohmann <20h@r-36.net> Date: Sun, 1 Jun 2014 15:54:28 +0200 Fixing italic bold. Thanks Felipe Spychalski <spychalski@gmail.com> for the patch! Diffstat:
| M | st.c | | | 9 | +++++++-- |
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c @@ -3149,8 +3149,13 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { if(BETWEEN(base.fg, 0, 7)) fg = &dc.col[base.fg + 8]; - font = &dc.bfont; - frcflags = FRC_BOLD; + if(base.mode & ATTR_ITALIC) { + font = &dc.ibfont; + frcflags = FRC_ITALICBOLD; + } else { + font = &dc.bfont; + frcflags = FRC_BOLD; + } } if(IS_SET(MODE_REVERSE)) {