SIDN / CycleHunter

Python software that reads zone files, extract NS records, and detect cyclic dependencies
https://tsuname.io
BSD 2-Clause "Simplified" License
37 stars 14 forks source link

Don't display progress bar when not attached to tty. #23

Closed huguei closed 3 years ago

huguei commented 3 years ago

When I ran the process in batch directing stdout and err to a file, it was filled with control characters by the progress bar (about 700K). This small change detects when the output is not a tty, and does not display a progress bar.

seb-at-nzrs commented 3 years ago

Thanks for the PR Hugo. It makes sense to avoid the progress if the result is going to a file or a pipe.