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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

citrus-it
Copy link

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

@@ -0,0 +1 @@
Terminal control characters should be restored on repl exit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Terminal control characters should be restored on repl exit
Restore terminal control characters on REPL exit.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you revert this back on accident?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it, sorry about that!

@ZeroIntensity ZeroIntensity added needs backport to 3.13 bugs and security fixes topic-repl Related to the interactive shell labels Jan 12, 2025
@@ -40,7 +40,7 @@ def as_list(self):
self.lflag,
self.ispeed,
self.ospeed,
self.cc,
self.cc[:],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. Let's add a comment explaining why this is here for future readers.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added one. Please let me know if you have suggestions for better wording.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review needs backport to 3.13 bugs and security fixes topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants