From b90cac189608457ac8f45f8b0331c47ad95bb048 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 21 Mar 2018 23:08:46 +0100 Subject: [PATCH] add other debug --- src/fenrir/screenDriver/vcsaDriver.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 654d6e32..610c1ab0 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -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'] = ''