Skip to content

Commit

Permalink
gh-128330: Terminal control characters should be restored on repl exit (
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it authored and Tripathi-Manjul committed Jan 23, 2025
1 parent 32bfaae commit dda7a8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/_pyrepl/fancy_termios.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def as_list(self):
self.lflag,
self.ispeed,
self.ospeed,
self.cc,
# Always return a copy of the control characters list to ensure
# there are not any additional references to self.cc
self.cc[:],
]

def copy(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore terminal control characters on REPL exit.

0 comments on commit dda7a8c

Please sign in to comment.