Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-128330: Terminal control characters should be restored on repl exit #128331

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

citrus-it
Copy link
Contributor

@citrus-it citrus-it commented Dec 29, 2024

Copy link

cpython-cla-bot bot commented Dec 29, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Dec 29, 2024

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@ZeroIntensity ZeroIntensity added needs backport to 3.13 bugs and security fixes topic-repl Related to the interactive shell labels Jan 12, 2025
@pablogsal pablogsal merged commit 0b15d9c into python:main Jan 23, 2025
50 checks passed
@miss-islington-app
Copy link

Thanks @citrus-it for the PR, and @pablogsal 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 Jan 23, 2025
…pl exit (pythonGH-128331)

(cherry picked from commit 0b15d9c)

Co-authored-by: Andy Fiddaman <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Jan 23, 2025

GH-129233 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 23, 2025
pablogsal pushed a commit that referenced this pull request Jan 23, 2025
…epl exit (GH-128331) (#129233)

gh-128330: Terminal control characters should be restored on repl exit (GH-128331)
(cherry picked from commit 0b15d9c)

Co-authored-by: Andy Fiddaman <[email protected]>
Tripathi-Manjul pushed a commit to Tripathi-Manjul/cpython that referenced this pull request Jan 23, 2025
@ZeroIntensity
Copy link
Member

This was merged without a test. Is it worth adding one in a follow-up?

@pablogsal
Copy link
Member

There is not an easy way to test this that I can think of (just checking that the list is not modified doesn't actually test the fix) but if you can think of one I am happy to review the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants