Repository navigation
Use Windows-specific Colorama initialisation - #12493
Merged
Merged
Conversation
Colorama has a newer `just_fix_windows_console` call (v0.4.6+; [1]) which provides a better initialization for Windows consoles. This should improve a user's colored terminal experience when using other scripts/utilities that may use multiple Sphinx instances over the life-cycle of a run. [1]: https://github.com/tartley/colorama?tab=readme-ov-file#usage Signed-off-by: James Knight <[email protected]>
Member
|
Thanks! |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Feature or Bugfix
Purpose
Colorama has a newer
just_fix_windows_consolecall (v0.4.6+) which provides a better initialization for Windows consoles. This should improve a user's colored terminal experience when using other scripts/utilities that may use multiple Sphinx instances over the life-cycle of a run.Detail
This is most likely outside the supported use cases for Sphinx but this change is driven to help the user experience when performing testing a third-party Sphinx extension. When testing for a third-party extension, the Sphinx application is built through a utility call that can be used to create multiple instances over time in unit and other testing. Noticed when in a Windows environment, if a second instance of Sphinx is created, the color becomes disabled in the console. Stumbled upon an issue which looked to be related to this case and a specific comment suggests to use a
just_fix_windows_consolecall instead. Testing between two versions of Sphinx with changing the initialization call seemed to show an improved experience.Before:
After:
Relates