Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress bar produces long outputs #418

Open
amallia opened this issue Jun 23, 2020 · 0 comments
Open

Progress bar produces long outputs #418

amallia opened this issue Jun 23, 2020 · 0 comments
Labels
enhancement New feature or request priority:medium

Comments

@amallia
Copy link
Member

amallia commented Jun 23, 2020

Related to #417

The progress bar causes a problem if run a long process as it produces one line per second.

The usual solution to that is to detect whether we're speaking to the TTY or a file. Here's an example for POSIX systems (we'd have to replace stdin with stdout):

https://stackoverflow.com/a/7601564

We should define somewhere a is_tty function that will implement this for all platforms, and use that in our code.

@amallia amallia added the enhancement New feature or request label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:medium
Projects
None yet
Development

No branches or pull requests

2 participants