[3.13] gh-128330: Terminal control characters should be restored on repl exit (GH-128331) (#129233)

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

Co-authored-by: Andy Fiddaman <andy@omnios.org>
This commit is contained in:
Miss Islington (bot) 2025-01-23 18:55:28 +01:00 committed by GitHub
parent e3b3e01d6a
commit 52ccf264df
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):