--- orig-main.c Tue Dec 14 00:18:44 1999 +++ main.c Sun Jan 5 16:34:23 2003 @@ -380,11 +380,10 @@ long sector,osector=0; struct timeval thistime; static char heartbeat=' '; int position=0,aheadposition=0; static int overlap=0; - static int printit=-1; static int slevel=0; static int slast=0; static int stimeout=0; char *smilie="= :-)"; @@ -397,20 +396,10 @@ if(!quiet){ long test; osector=inpos; sector=inpos/CD_FRAMEWORDS; - if(printit==-1){ - if(isatty(STDERR_FILENO)){ - printit=1; - }else{ - printit=0; - } - } - - if(printit==1){ /* else don't bother; it's probably being - redirected */ position=((float)(sector-callbegin)/ (callend-callbegin))*graph; aheadposition=((float)(c_sector-callbegin)/ (callend-callbegin))*graph; @@ -573,11 +562,10 @@ buffer[aheadposition+19]='>'; } fprintf(stderr,buffer); } - } } /* clear the indicator for next batch */ if(function==-1) memset(dispcache,' ',graph);