dont announce start as TTY change

This commit is contained in:
chrys
2016-08-21 21:23:19 +02:00
parent fbe33d609e
commit 3794bd5fe4
4 changed files with 13 additions and 54 deletions

View File

@ -17,6 +17,6 @@ screenData = {
'newContentBytes': b'',
'newContentText': '',
'newContentAttrib': b'',
'oldTTY':'0',
'oldTTY':'-1',
'newTTY':'0',
}

View File

@ -34,7 +34,10 @@ class screen():
environment['screenData']['oldContentTextAttrib'] = environment['screenData']['newContentAttrib']
environment['screenData']['oldCursor']['x'] = environment['screenData']['newCursor']['x']
environment['screenData']['oldCursor']['y'] = environment['screenData']['newCursor']['y']
environment['screenData']['oldTTY'] = environment['screenData']['newTTY']
if environment['screenData']['oldTTY'] == '-1':
environment['screenData']['oldTTY'] = newTTY # dont recognice starting fenrir as change
else:
environment['screenData']['oldTTY'] = environment['screenData']['newTTY']
environment['screenData']['oldDelta'] = environment['screenData']['newDelta']
environment['screenData']['oldNegativeDelta'] = environment['screenData']['newNegativeDelta']
environment['screenData']['newTTY'] = newTTY