mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-128330: Terminal control characters should be restored on repl exit (#128331)
This commit is contained in:
parent
ec91e1c276
commit
0b15d9c0d2
2 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,9 @@ class TermState:
|
|||
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):
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Restore terminal control characters on REPL exit.
|
Loading…
Add table
Add a link
Reference in a new issue