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):
386
386
pass
387
387
388
388
def restore (self ):
389
+ print ("restore: 1" )
389
390
self .__maybe_write_code (self ._rmkx )
391
+ print ("restore: 2" )
390
392
self .flushoutput ()
393
+ print ("restore: 3" )
391
394
tcsetattr (self .input_fd , termios .TCSADRAIN , self .__svtermstate )
395
+ print ("restore: 4" )
392
396
393
397
if hasattr (self , 'old_sigwinch' ):
394
398
try :
399
+ print ("restore: 5" )
395
400
signal .signal (signal .SIGWINCH , self .old_sigwinch )
401
+ print ("restore: 6" )
396
402
del self .old_sigwinch
397
403
except ValueError :
404
+ print ("restore: 7" )
398
405
# signal only works in main thread.
399
406
pass
407
+ print ("restore: end" )
400
408
401
409
def __sigwinch (self , signum , frame ):
402
410
self .height , self .width = self .getheightwidth ()
You can’t perform that action at this time.
0 commit comments