Add bold off SGR
authorQuentin Rameau <quinq@fifth.space>
Sun, 28 May 2017 07:56:57 +0000 (09:56 +0200)
committerQuentin Rameau <quinq@fifth.space>
Sat, 3 Jun 2017 20:28:35 +0000 (22:28 +0200)
st.c

diff --git a/st.c b/st.c
index ae93ade..8d4a9f2 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1402,6 +1402,9 @@ tsetattr(int *attr, int l)
                case 9:
                        term.c.attr.mode |= ATTR_STRUCK;
                        break;
+               case 21:
+                       term.c.attr.mode &= ~ATTR_BOLD;
+                       break;
                case 22:
                        term.c.attr.mode &= ~(ATTR_BOLD | ATTR_FAINT);
                        break;