Skip to content

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

Open
pranavchoudhary-tech wants to merge 2 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 2 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
pranavchoudhary-tech force-pushed the fix-curses-set-term-155976 branch from 08bb6eb to 71719c0 Compare August 18, 2026 12:38
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