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

view_curses: do not force black background #29

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

amonakov
Copy link
Contributor

Without a call to use_default_colors, ncurses will assume that color 0
(usually black) is the same as the background color of the terminal.

This assumption is not necessarily true, the user might be running a
terminal with any background (even white or a light color) while the
color palette has black at index 0.

To avoid overriding the background color for the entire window without a
good reason, invoke use_default_colors after start_color.

Without a call to use_default_colors, ncurses will assume that color 0
(usually black) is the same as the background color of the terminal.

This assumption is not necessarily true, the user might be running a
terminal with any background (even white or a light color) while the
color palette has black at index 0.

To avoid overriding the background color for the entire window without a
good reason, invoke use_default_colors after start_color.
@bbonev bbonev merged commit ec26d19 into Tomas-M:master Feb 16, 2022
@bbonev
Copy link
Collaborator

bbonev commented Feb 16, 2022

Thanks for the improvement!

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.

2 participants