term: support \33[23m to disable italics
authorAli Gholami Rudi <ali@rudi.ir>
Mon, 7 May 2012 13:35:38 +0000 (7 18:05 +0430)
committerAli Gholami Rudi <ali@rudi.ir>
Mon, 7 May 2012 13:35:38 +0000 (7 18:05 +0430)
Reported and tested by Sara Fauzia <sfauzia@fas.harvard.edu>.

term.c

diff --git a/term.c b/term.c
index 5e5e9dd..739f6c2 100644 (file)
--- a/term.c
+++ b/term.c
@@ -505,6 +505,9 @@ static void setattr(int m)
        case 22:
                mode &= ~ATTR_BOLD;
                break;
+       case 23:
+               mode &= ~ATTR_ITALIC;
+               break;
        case 27:
                mode &= ~ATTR_REV;
                break;