summaryrefslogtreecommitdiff
path: root/util/AnsiTerm.cpp
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-14 18:42:54 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-04-14 18:42:54 +0200
commita8f1f2fbd1fe78c185b5c320c11d0265b49f8668 (patch)
tree869216c945841ed46e2ca4b69af46f54a738d3cd /util/AnsiTerm.cpp
parent42de6cdd540e080b6e34e5e27cb8c44151711010 (diff)
parentc0cffd791bfaffaad631076141fcdfc000adcac1 (diff)
Merge tag 'upstream/3.0.4'
Upstream version 3.0.4
Diffstat (limited to 'util/AnsiTerm.cpp')
-rw-r--r--util/AnsiTerm.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/AnsiTerm.cpp b/util/AnsiTerm.cpp
index 750fd52..956ec98 100644
--- a/util/AnsiTerm.cpp
+++ b/util/AnsiTerm.cpp
@@ -1774,7 +1774,8 @@ CAnsiTerm::ProcessSGR(void)
break;
default:
- assert(false);
+ dbglog("ERROR: bad SGR param %d (0x%02x)\n",index,index);
+ m_Attribute = kDefaultAttribute;
break;
}
}
@@ -1798,6 +1799,7 @@ CAnsiTerm::ProcessSM(void)
{
case 0:
default:
+ dbglog("ERROR: bad private SM param %d\n",m_Parameters[0]);
assert(false);
break;
case DECCKM:
@@ -1846,8 +1848,9 @@ CAnsiTerm::ProcessSM(void)
{
case 20: m_bLineFeedNewLineMode = true; break; // LNM
default:
- dbglog("ProcessSM: param %d != 20\n",m_Parameters[0]);
- assert(false); break;
+ dbglog("ProcessSM: param %d != 20\n",m_Parameters[0]);
+ assert(false);
+ break;
}
}
}