Skip to content

Commit 971b4ae

Browse files
committed
debug restore
1 parent 21db5e9 commit 971b4ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pyrepl/unix_console.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,17 +386,25 @@ def prepare(self):
386386
pass
387387

388388
def restore(self):
389+
print("restore: 1")
389390
self.__maybe_write_code(self._rmkx)
391+
print("restore: 2")
390392
self.flushoutput()
393+
print("restore: 3")
391394
tcsetattr(self.input_fd, termios.TCSADRAIN, self.__svtermstate)
395+
print("restore: 4")
392396

393397
if hasattr(self, 'old_sigwinch'):
394398
try:
399+
print("restore: 5")
395400
signal.signal(signal.SIGWINCH, self.old_sigwinch)
401+
print("restore: 6")
396402
del self.old_sigwinch
397403
except ValueError:
404+
print("restore: 7")
398405
# signal only works in main thread.
399406
pass
407+
print("restore: end")
400408

401409
def __sigwinch(self, signum, frame):
402410
self.height, self.width = self.getheightwidth()

0 commit comments

Comments
 (0)