File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments