prepare for remake input handling, prepare other stuff

This commit is contained in:
chrys
2016-09-02 21:37:36 +02:00
parent 1998ca15e8
commit 7227f52ac7
81 changed files with 705 additions and 314 deletions

View File

@ -3,8 +3,14 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charEcho'):
return environment
# detect deletion or chilling
@ -24,5 +30,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import word_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'wordEcho'):
return environment
@ -44,5 +50,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'charDeleteEcho'):
@ -29,5 +35,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming'):
return environment
@ -22,5 +28,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import time
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'promote', 'enabled'):
return environment
@ -24,5 +30,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
@ -13,5 +19,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
return environment
@ -12,5 +18,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return ''
def run(self, environment):
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
return environment
@ -11,5 +17,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass