Im not sure if this is right, but most Terminals seem to make bold text also bright. Some programs, like htop for example, rely on this. As far as i remember, the first 8 colors should be mapped to the second 8 colors for bold text.

Here is a patch that does this. With it applied, man pages and htop looks the same in st as in rxvt.

greetings
stefan mark
diff -r 656f8e521f85 st.c
--- a/st.c      Thu Sep 02 02:03:53 2010 +0200
+++ b/st.c      Thu Sep 02 10:53:11 2010 +0200
@@ -1223,8 +1223,12 @@
 
        if(base.mode & ATTR_REVERSE)
                xfg = dc.col[base.bg], xbg = dc.col[base.fg];
-       else
-               xfg = dc.col[base.fg], xbg = dc.col[base.bg];
+       else {
+               if(base.mode & ATTR_BOLD && BETWEEN(base.fg, 0, 7))
+                       xfg = dc.col[base.fg+8], xbg = dc.col[base.bg];
+               else
+                       xfg = dc.col[base.fg], xbg = dc.col[base.bg];
+       }
 
        XSetBackground(xw.dis, dc.gc, xbg);
        XSetForeground(xw.dis, dc.gc, xfg);

Reply via email to