interrupt on tty change

This commit is contained in:
chrys
2016-07-18 19:42:49 +02:00
parent 0788db5a8c
commit 79166454c1
4 changed files with 17 additions and 21 deletions

View File

@ -5,13 +5,13 @@ class command():
pass
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\
#len(environment['screenData']['newDelta']) <= 2 and \
environment['screenData']['newCursor'] != environment['screenData']['oldCursor']:
environment['screenData']['newCursor'] - environment['screenData']['oldCursor'] ==1:
return environment
ttyChanged = environment['screenData']['newTTY'] != environment['screenData']['oldTTY']
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \
environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
not ttyChanged:
return environment
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'],False)
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], ttyChanged)
return environment
def setCallback(self, callback):
pass