From 00d731d8b3785ee70300611f01d831e448a4cdea Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 22 Mar 2018 00:26:17 +0100 Subject: [PATCH] fix first loop --- src/fenrir/core/screenManager.py | 1 + src/fenrir/screenDriver/vcsaDriver.py | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/fenrir/core/screenManager.py b/src/fenrir/core/screenManager.py index a7fbc7d1..a052ce17 100644 --- a/src/fenrir/core/screenManager.py +++ b/src/fenrir/core/screenManager.py @@ -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): diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 610c1ab0..efb0c152 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -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