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

Fix displaying bright color variation in terminal output #2373

Merged
merged 4 commits into from
Apr 21, 2024

Conversation

peace-maker
Copy link
Member

The number of simultaneous colors in the current terminal are queried later during initialization and the text.num_colors attribute is updated accordingly. The text.has_bright attribute wasn't updated when that happened and always remained set to False. Calculate those properties based on num_colors dynamically.

text.num_colors = termcap.get('colors', default = 8) or 8

The number of simultaneous colors in the current terminal are queried
later during initialization and the text.num_colors attribute is updated accordingly.
The text.has_bright attribute wasn't updated when that happened and always
remained set to False. Calculate those properties based on num_colors dynamically.
Only get "colors" on Windows to avoid Gallopsled#1201 again.
@peace-maker peace-maker merged commit 6007248 into Gallopsled:stable Apr 21, 2024
13 checks passed
@peace-maker peace-maker deleted the text_bright branch April 21, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant