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

This commit is contained in:
Andy Fiddaman 2025-01-23 17:30:08 +00:00 committed by GitHub
parent ec91e1c276
commit 0b15d9c0d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -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):

View File

@ -0,0 +1 @@
Restore terminal control characters on REPL exit.