Skip to content

gh-152068: Reset PyREPL Colors on prompt finish#152108

Open
edvilme wants to merge 9 commits into
python:mainfrom
edvilme:gh-152068-pyrepl-color-bug
Open

gh-152068: Reset PyREPL Colors on prompt finish#152108
edvilme wants to merge 9 commits into
python:mainfrom
edvilme:gh-152068-pyrepl-color-bug

Conversation

@edvilme

@edvilme edvilme commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Fixes a bug when a line was split (particularly on macOS Terminal.app) in the middle of a colorized keyword, causing the ANSI Color Reset sequence (\x1b[0m) to not be properly printed, causing the output to be colored when it shouldn't.

Before and after

Screenshot 2026-06-24 at 7 57 42 p m

CC @StanFromIreland

@brettcannon brettcannon self-requested a review July 1, 2026 02:43
Comment thread Lib/_pyrepl/unix_console.py
edvilme and others added 2 commits July 2, 2026 10:48
…mJU.rst

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@edvilme edvilme force-pushed the gh-152068-pyrepl-color-bug branch from 0c56e5d to d54cfb8 Compare July 2, 2026 19:23
@edvilme edvilme requested a review from terryjreedy as a code owner July 2, 2026 19:23
@edvilme edvilme force-pushed the gh-152068-pyrepl-color-bug branch from d54cfb8 to 529de59 Compare July 2, 2026 19:24
…estore()

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edvilme edvilme requested a review from pablogsal July 2, 2026 20:42
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.

2 participants