From 60d2ca5a94c0f60a26c8aad1e4a2a9055cc4f3c6 Mon Sep 17 00:00:00 2001
From: Ziusudra <ziusudra@gmail.com>
Date: Sun, 16 Dec 2012 01:02:31 -0700
Subject: [PATCH 6/9] Made SGR 39 & 49 actually reset the the color
- IS_FORESET & IS_BACKSET are never used. Are they left over from something
that got removed, or are they something that didn't get finished?
---
src/apps/terminal/TermParse.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp
index a0fb4f1..eca4be0 100644
a
|
b
|
TermParse::EscParse()
|
986 | 986 | // terminfo op=\E[39;49m |
987 | 987 | // termcap op=\E[39;49m |
988 | 988 | fAttr &= ~FORESET; |
| 989 | fAttr &= ~FORECOLOR; |
| 990 | fAttr |= FORECOLORED(7); |
989 | 991 | break; |
990 | 992 | |
991 | 993 | case 40: |
… |
… |
TermParse::EscParse()
|
1018 | 1020 | |
1019 | 1021 | case 49: |
1020 | 1022 | fAttr &= ~BACKSET; |
| 1023 | fAttr &= ~BACKCOLOR; |
| 1024 | fAttr |= BACKCOLORED(0); |
1021 | 1025 | break; |
1022 | 1026 | } |
1023 | 1027 | } |