fix first loop

This commit is contained in:
chrys 2018-03-22 00:26:17 +01:00
parent b90cac1896
commit 00d731d8b3
2 changed files with 1 additions and 7 deletions

View File

@ -15,6 +15,7 @@ class screenManager():
self.env['runtime']['settingsManager'].loadDriver(\
self.env['runtime']['settingsManager'].getSetting('screen', 'driver'), 'screenDriver')
self.env['runtime']['screenDriver'].getCurrScreen()
self.env['runtime']['screenDriver'].getCurrScreen()
self.env['runtime']['screenDriver'].getSessionInformation()
def shutdown(self):

View File

@ -311,13 +311,6 @@ class driver(screenDriver):
self.env['screen']['newContentText'], \
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