projects
/
calu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d664b83
)
sim: should fix problem with color/bold
author
Martin Perner
<martin@perner.cc>
Wed, 12 Jan 2011 16:24:53 +0000
(17:24 +0100)
committer
Martin Perner
<martin@perner.cc>
Wed, 12 Jan 2011 17:40:16 +0000
(18:40 +0100)
3b_sim/ccolor.h
patch
|
blob
|
history
diff --git
a/3b_sim/ccolor.h
b/3b_sim/ccolor.h
index aabf4a3eff2a07fa53e695ec2a078f24cc1bd4cd..07c9252e11a9b83becb63b16ffd7ebda143613ab 100644
(file)
--- a/
3b_sim/ccolor.h
+++ b/
3b_sim/ccolor.h
@@
-41,6
+41,9
@@
struct color
inline ostream& operator<<(ostream& o, const color& c)
{
+ //reset, just to be sure
+ o << "\033[0m";
+
o << "\033[";
if(c.back != black) {