Skip to content
Closed
Changes from all commits
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/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from . import commands, console, input
from .utils import wlen, unbracket, disp_str, gen_colors, THEME
from .trace import trace
import termios
import errno


# types
Expand Down Expand Up @@ -590,6 +592,10 @@ def prepare(self) -> None:
self.dirty = True
self.last_command = None
self.calc_screen()
except termios.error as e:
if e.args[0] == errno.EIO:
return
raise
except BaseException:
self.restore()
raise
Expand Down
Loading