fix first loop

This commit is contained in:
chrys 2018-03-21 21:59:34 +01:00
parent 4d265595c6
commit acc140aed9

View File

@ -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'] = ''