From acc140aed973c7999d2aaa2e804ba2d8eded16b8 Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 21 Mar 2018 21:59:34 +0100 Subject: [PATCH] fix first loop --- src/fenrir/screenDriver/vcsaDriver.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fenrir/screenDriver/vcsaDriver.py b/src/fenrir/screenDriver/vcsaDriver.py index 22d13cb3..9993181a 100644 --- a/src/fenrir/screenDriver/vcsaDriver.py +++ b/src/fenrir/screenDriver/vcsaDriver.py @@ -323,9 +323,13 @@ class driver(screenDriver): self.env['screen']['oldCursorAttrib'] = None self.env['screen']['newCursorAttrib'] = None self.env['screen']['oldNegativeDelta'] = '' - # initialize current deltas + # 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'] + # initialize current deltas self.env['screen']['newNegativeDelta'] = '' self.env['screen']['newDelta'] = '' self.env['screen']['newAttribDelta'] = ''