mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-132017: Handle SIGCONT in pyrepl
(#132918)
This commit is contained in:
parent
d48616e08c
commit
e4561da886
2 changed files with 7 additions and 0 deletions
|
@ -197,6 +197,12 @@ class UnixConsole(Console):
|
|||
self.event_queue = EventQueue(self.input_fd, self.encoding)
|
||||
self.cursor_visible = 1
|
||||
|
||||
signal.signal(signal.SIGCONT, self._sigcont_handler)
|
||||
|
||||
def _sigcont_handler(self, signum, frame):
|
||||
self.restore()
|
||||
self.prepare()
|
||||
|
||||
def __read(self, n: int) -> bytes:
|
||||
return os.read(self.input_fd, n)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue