gh-127060: Disable traceback colors in IDLE#128028
Merged
terryjreedy merged 3 commits intopython:mainfrom Dec 18, 2024
Merged
Conversation
Set TERM environment variable to "dumb" to disable traceback colors in IDLE, since IDLE doesn't understand ANSI escape sequences.
Member
Author
|
@terryjreedy: Are you ok with this approach for now? |
terryjreedy
approved these changes
Dec 18, 2024
Member
terryjreedy
left a comment
There was a problem hiding this comment.
I tested this on macOS and colors were suppressed even when excepthook was set. I would have been OK with setting in IDLE processes, but being explicit here is fine too.
I believe sys.subprocess_arglist and sys.env could be set in init but will defer this and other cleanups to another PR sometime.
Tests were hanging incomplete, so updated to trigger a proper run. Will merge if finish before sleep.
|
Thanks @vstinner for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Dec 18, 2024
Set TERM environment variable to "dumb" to disable traceback colors in IDLE, since IDLE doesn't understand ANSI escape sequences. (cherry picked from commit 559b0e7) Co-authored-by: Victor Stinner <vstinner@python.org>
|
GH-128052 is a backport of this pull request to the 3.13 branch. |
Member
Author
|
Thanks for the review and the merge. |
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this pull request
Jan 8, 2025
Set TERM environment variable to "dumb" to disable traceback colors in IDLE, since IDLE doesn't understand ANSI escape sequences.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set TERM environment variable to "dumb" to disable traceback colors in IDLE, since IDLE doesn't understand ANSI escape sequences.