Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Lib/_pyrepl/unix_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@ def _my_getstr(cap: str, optional: bool = False) -> bytes | None:
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 more_in_buffer(self) -> bool:
return bool(
self.input_buffer
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix error when ``pyrepl`` is suspended, then resumed and terminated.
Loading