Skip to content

gh-155976: Refresh COLORS and COLOR_PAIRS in curses set_term - #155994

Open
pranavchoudhary-tech wants to merge 3 commits into
python:mainfrom
pranavchoudhary-tech:fix-curses-set-term-155976
Open

gh-155976: Refresh COLORS and COLOR_PAIRS in curses set_term#155994
pranavchoudhary-tech wants to merge 3 commits into
python:mainfrom
pranavchoudhary-tech:fix-curses-set-term-155976

Conversation

@pranavchoudhary-tech

Copy link
Copy Markdown
Contributor

gh-155976: Update update_lines_cols() in Modules/_cursesmodule.c to refresh COLORS and COLOR_PAIRS on module dictionaries when switching terminal screens via set_term() if start_color() is active. Also add unit test in Lib/test/test_curses.py.

@pranavchoudhary-tech

Copy link
Copy Markdown
Contributor Author

@alex Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant