seperate onInput and onScreenUpdate incomming speech for prepare word echo and stuff
This commit is contained in:
parent
8ead2fc669
commit
46fc7ed218
21
src/fenrir-package/commands/onInput/70000-speak_incomming.py
Normal file
21
src/fenrir-package/commands/onInput/70000-speak_incomming.py
Normal 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
|
Loading…
Reference in New Issue
Block a user