sim: should fix problem with color/bold
authorMartin Perner <martin@perner.cc>
Wed, 12 Jan 2011 16:24:53 +0000 (17:24 +0100)
committerMartin Perner <martin@perner.cc>
Wed, 12 Jan 2011 17:40:16 +0000 (18:40 +0100)
3b_sim/ccolor.h

index aabf4a3eff2a07fa53e695ec2a078f24cc1bd4cd..07c9252e11a9b83becb63b16ffd7ebda143613ab 100644 (file)
@@ -41,6 +41,9 @@ struct color
 
 inline ostream& operator<<(ostream& o, const color& c)
 {
 
 inline ostream& operator<<(ostream& o, const color& c)
 {
+       //reset, just to be sure
+       o << "\033[0m";
+
        o << "\033[";
 
        if(c.back != black) {
        o << "\033[";
 
        if(c.back != black) {