]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-152068: Reset PyREPL Colors on prompt finish (#152108)
authorEduardo Villalpando Mello <eduardovil@microsoft.com>
Sat, 4 Jul 2026 13:16:02 +0000 (06:16 -0700)
committerGitHub <noreply@github.com>
Sat, 4 Jul 2026 13:16:02 +0000 (14:16 +0100)
commit832d5571115fba0adcb09742b56f51ee081710c6
tree02175fb16c58eba1c1849a1fb181dfcc6af0bc81
parented370d3337c1ac4f7295b444a4807c0b72287608
gh-152068: Reset PyREPL Colors on prompt finish (#152108)

* 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.

* gh-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>
Lib/_pyrepl/render.py
Lib/_pyrepl/unix_console.py
Lib/_pyrepl/windows_console.py
Lib/test/test_pyrepl/test_unix_console.py
Lib/test/test_pyrepl/test_windows_console.py
Misc/NEWS.d/next/Library/2026-07-02-19-21-15.gh-issue-152068.ThsmJU.rst [new file with mode: 0644]