diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-19 22:44:18 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-19 22:44:18 -0700 |
commit | 76f2adb54f011c319776eca9cdb278b753730e76 (patch) | |
tree | ff039ff9cd3f6aa3e6bf1f9eaab3ff0e62bbe6ac /src/aig | |
parent | ed2f0ef34f3d5aa2490e037892d3feeeeddb2e61 (diff) | |
download | abc-76f2adb54f011c319776eca9cdb278b753730e76.tar.gz abc-76f2adb54f011c319776eca9cdb278b753730e76.tar.bz2 abc-76f2adb54f011c319776eca9cdb278b753730e76.zip |
Adding color to sizing stats.
Diffstat (limited to 'src/aig')
-rw-r--r-- | src/aig/gia/giaMan.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/aig/gia/giaMan.c b/src/aig/gia/giaMan.c index d0048f6a..710886ae 100644 --- a/src/aig/gia/giaMan.c +++ b/src/aig/gia/giaMan.c @@ -384,8 +384,15 @@ void Gia_ManPrintChoiceStats( Gia_Man_t * p ) void Gia_ManPrintStats( Gia_Man_t * p, Gps_Par_t * pPars ) { extern float Gia_ManLevelAve( Gia_Man_t * p ); +#ifdef WIN32 + SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), 15 ); // bright if ( p->pName ) Abc_Print( 1, "%-8s : ", p->pName ); + SetConsoleTextAttribute( GetStdHandle(STD_OUTPUT_HANDLE), 7 ); // normal +#else + if ( p->pName ) + Abc_Print( 1, "%s%-8s%s : ", "\033[1;37m", p->pName, "\033[0m" ); // bright +#endif Abc_Print( 1, "i/o =%7d/%7d", Gia_ManPiNum(p), Gia_ManPoNum(p) ); if ( Gia_ManConstrNum(p) ) Abc_Print( 1, "(c=%d)", Gia_ManConstrNum(p) ); |