summaryrefslogtreecommitdiffstats
path: root/src/misc/bar
diff options
context:
space:
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" );