gh-132017: Handle SIGCONT in pyrepl (#132918)

This commit is contained in:
Stan Ulbrych 2025-05-05 21:37:01 +01:00 committed by GitHub
parent d48616e08c
commit e4561da886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View file

@ -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)