Skip to content

use terminal colors in curses#1

Open
shrubbroom wants to merge 1 commit intovisualcjy:mainfrom
shrubbroom:main
Open

use terminal colors in curses#1
shrubbroom wants to merge 1 commit intovisualcjy:mainfrom
shrubbroom:main

Conversation

@shrubbroom
Copy link

The curses would use COLOR_BLACK (or color 0) as the default background color, which is not true if the terminal has light background. In this patch, the curses color is initialized with invoking

curses.use_default_colors()

This would use color -1 as the background, which is the background of the current terminal.

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