mirror of https://github.com/python/cpython.git
gh-128330: Terminal control characters should be restored on repl exit (#128331)
This commit is contained in:
parent
ec91e1c276
commit
0b15d9c0d2
|
@ -40,7 +40,9 @@ def as_list(self):
|
||||||
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…
Reference in New Issue