gh-152068: Reset PyREPL Colors on prompt finish#152108
Conversation
…mJU.rst Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
0c56e5d to
d54cfb8
Compare
d54cfb8 to
529de59
Compare
…estore() Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Thanks @edvilme for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15. |
|
Sorry, @edvilme and @pablogsal, I could not cleanly backport this to |
|
GH-153029 is a backport of this pull request to the 3.15 branch. |
|
@edvilme can you please do the backport? |
Yes. I am out for vacation currently but will do the backport as soon as I have some free time :) |
|
3.15 was done automatically, 3.14 is pending. See bot comments above. |
|
Please don't forget about backports. |
|
Hello. Yes, I am currently out of town and don't have access to my computer, but will create the PR later this week |
|
GH-154402 is a backport of this pull request to the 3.14 branch. |
* Use ANSI Escape Codes from Colorize * Print ANSI Color reset on finish and restore * 📜🤖 Added by blurb_it. * Update imports * Update Misc/NEWS.d/next/macOS/2026-06-24-18-00-39.gh-issue-152068.ThsmJU.rst Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> * Remove news entry * 📜🤖 Added by blurb_it. * pythongh-152068: Test ANSI reset is emitted on console finish() and restore() Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Manual rebase #154402 |
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
CC @StanFromIreland