From: Martin Perner Date: Wed, 12 Jan 2011 16:24:53 +0000 (+0100) Subject: sim: should fix problem with color/bold X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=calu.git;a=commitdiff_plain;h=5632f1c0b53769689551e96ecc1af697cf861397 sim: should fix problem with color/bold --- diff --git a/3b_sim/ccolor.h b/3b_sim/ccolor.h index aabf4a3..07c9252 100644 --- 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) {