-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Introduce option to opt-out of spinners #10773
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3aadd51
feat(iostreams): Option to opt out of spinners
BagToad 3eba461
fix(iostreams): spinner env var is now in factory
BagToad f283d6d
feat(iostreams): textual progress indicator does not clear screen
BagToad 290e78c
test(iostreams): update test description
BagToad 056d292
doc(iostreams): comment behavior of textual progress indicator
BagToad 1dbb01a
doc(help): add documentation for GH_SPINNER_DISABLED
BagToad dabb29b
test(factory): remove needless nil check
BagToad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(iostreams): textual progress indicator does not clear screen
This bypasses the `spinner` package for the textual progress indicator for users with the spinner disabled out of concerns for accessibility, specifically with screen readers: - The `spinner` package will continuously re-draw the screen. I wasn't able to have this cause problems with my Mac screen reader, but it's nonetheless a concern that other screen readers may not handle this screen re-drawing well. - The `spinner` package clears any progress indicator messages from the screen when stopping the progress indicator or changing its label. This is a problem because it interrupts screen readers and leaves no way to recover what the loading message was by scrolling up in the terminal. NOTE: this new implementation still interrupts the screen reader when the a new label is printed, but it does not clear the screen. This makes the loading messages recoverable, at least.
- Loading branch information
commit f283d6d11ce1c3d15c3cf55a93d2c1a6fa1fcdd6
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.