summaryrefslogtreecommitdiffstats
path: root/src/misc/bar
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-07-07 10:44:34 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-07-07 10:44:34 -0700
commit8b881d235a90e67282fa2e91bbfec8c4e6685878 (patch)
tree1ab26419ca1ec1bd8639f9b12df6a4f5eb996012 /src/misc/bar
parent31d85e732b2648049171abfb906216dfe31449f3 (diff)
downloadabc-8b881d235a90e67282fa2e91bbfec8c4e6685878.tar.gz
abc-8b881d235a90e67282fa2e91bbfec8c4e6685878.tar.bz2
abc-8b881d235a90e67282fa2e91bbfec8c4e6685878.zip
Making 'pdr', &gla, &vta print correctly in batch mode.
Diffstat (limited to 'src/misc/bar')
-rw-r--r--src/misc/bar/bar.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/misc/bar/bar.c b/src/misc/bar/bar.c
index 565a969e..6610b415 100644
--- a/src/misc/bar/bar.c
+++ b/src/misc/bar/bar.c
@@ -144,7 +144,10 @@ void Bar_ProgressStop( Bar_Progress_t * p )
void Bar_ProgressShow( Bar_Progress_t * p, char * pString )
{
int i;
- if ( p == NULL ) return;
+ if ( p == NULL )
+ return;
+ if ( Abc_FrameIsBatchMode() )
+ return;
if ( pString )
fprintf( p->pFile, "%s ", pString );
for ( i = (pString? strlen(pString) + 1 : 0); i < p->posCur; i++ )
@@ -171,7 +174,10 @@ void Bar_ProgressShow( Bar_Progress_t * p, char * pString )
void Bar_ProgressClean( Bar_Progress_t * p )
{
int i;
- if ( p == NULL ) return;
+ if ( p == NULL )
+ return;
+ if ( Abc_FrameIsBatchMode() )
+ return;
for ( i = 0; i <= p->posTotal; i++ )
fprintf( p->pFile, " " );
fprintf( p->pFile, "\r" );