-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
TTY_INTERACTIVE env var #3777
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
TTY_INTERACTIVE env var #3777
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3777 +/- ##
=======================================
Coverage 97.84% 97.85%
=======================================
Files 74 74
Lines 8136 8142 +6
=======================================
+ Hits 7961 7967 +6
Misses 175 175
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I assumed that this option had something to do with interactive terminals, where you can not read from stdin. But, If I understand you correct, you are still able to read user input, even when TTY_INTERACTIVE=0 is enabled. Maybe call it TTY_ANIMATION=0 |
It echos an existing attribute in Rich. In that context interactive means somebody (i.e. a human) is interacting with the terminal, as apposed to running on CI. You are still able to read input, but reading from stdin doesn't always requires a human operator. It does disable animation, but the flag in Rich has broader meaning. It could also be |
Naming things is hard. I think naming it RICH_INTERACTIVE is a good choice if it is not a environment variable which is also used by other projects with the same meaning. |
I'd actually like it to become a standard thing. AFAIK there is no standard var for that, and I'd like it to become one... |
Adds a
TTY_INTERACTIVE
to disable things like progress bar / status spinners in CIThis adds to the new
TTY_COMPATIBLE
which enables styles even when the file is not technically a tty, as is the case in Github Actions.TTY_INTERACTIVE=0
will remove superfluous animations and progress bars in the CI output.