add other debug

This commit is contained in:
chrys 2018-03-21 23:08:46 +01:00
parent d03f59b3a6
commit b90cac1896

View File

@ -312,6 +312,12 @@ class driver(screenDriver):
self.env['screen']['newContentAttrib'] =\
self.autoDecodeVCSA(self.env['screen']['newContentBytes'][4:], self.env['screen']['lines'], self.env['screen']['columns'])
self.env['runtime']['debug'].writeDebugOut('OldTTY'+str(self.env['screen']['oldTTY'])+ ' newTTY:'+str(self.env['screen']['newTTY']),debug.debugLevel.INFO)
# fallback
if self.env['screen']['oldTTY'] == None:
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
# first run
if self.env['screen']['oldTTY'] == 0:
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
if self.env['screen']['newTTY'] != self.env['screen']['oldTTY']:
self.env['screen']['oldContentBytes'] = b''
self.env['screen']['oldContentAttrib'] = None
@ -322,13 +328,7 @@ class driver(screenDriver):
self.env['screen']['oldAttribDelta'] = ''
self.env['screen']['oldCursorAttrib'] = None
self.env['screen']['newCursorAttrib'] = None
self.env['screen']['oldNegativeDelta'] = ''
# fallback
if self.env['screen']['oldTTY'] == None:
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
# first run
if self.env['screen']['oldTTY'] == 0:
self.env['screen']['oldTTY'] = self.env['screen']['newTTY']
self.env['screen']['oldNegativeDelta'] = ''
# initialize current deltas
self.env['screen']['newNegativeDelta'] = ''
self.env['screen']['newDelta'] = ''