seperate onInput and onScreenUpdate incomming speech for prepare word echo and stuff

This commit is contained in:
chrys 2016-07-23 17:08:00 +02:00
parent 8ead2fc669
commit 46fc7ed218

View File

@ -0,0 +1,21 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho') and\
environment['screenData']['newCursor']['x'] - environment['screenData']['oldCursor']['x'] == 1:
return environment
ttyChanged = environment['screenData']['newTTY'] != environment['screenData']['oldTTY']
if environment['screenData']['newDelta'] == environment['screenData']['oldDelta'] and \
not ttyChanged:
return environment
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], ttyChanged)
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass