mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +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.lflag,
|
||||||
self.ispeed,
|
self.ispeed,
|
||||||
self.ospeed,
|
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):
|
def copy(self):
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Restore terminal control characters on REPL exit.
|
Loading…
Add table
Add a link
Reference in a new issue