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,9 +3,13 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,12 @@ import termios
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['commandBuffer']['currClipboard'] = -1
del environment['commandBuffer']['clipboard'][:]
@ -14,5 +20,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,6 +5,12 @@ from utils import mark_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if (environment['commandBuffer']['Marks']['1'] == None) or \
(environment['commandBuffer']['Marks']['2'] == None):
@ -33,5 +39,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if (environment['screenData']['newCursorReview'] != None):
cursorPos = environment['screenData']['newCursorReview'].copy()
@ -21,5 +27,3 @@ 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 'No Description found'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
@ -11,5 +17,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import line_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,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 'No Description found'
def run(self, environment):
if environment['screenData']['newContentText'].strip() == '':
environment['runtime']['outputManager'].presentText(environment, "screen is empty", soundIcon='EmptyLine', interrupt=True)
@ -11,5 +17,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,6 +5,12 @@ from utils import mark_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
# Prefer review cursor over text cursor
if (environment['screenData']['newCursorReview'] != None):
@ -21,5 +27,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,6 +5,12 @@ from utils import mark_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
# Prefer review cursor over text cursor
if (environment['screenData']['newCursorReview'] != None):
@ -21,5 +27,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 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,6 +5,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if (environment['screenData']['newCursorReview'] != None):
cursorPos = environment['screenData']['newCursorReview'].copy()
@ -24,5 +30,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
# Prefer review cursor over text cursor
@ -16,5 +22,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,14 +5,13 @@ import datetime
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
#this is the way to load the settings:
# general is the section in the config file, timeFormat is the variable
# this has to been added to settings.conf in sectino [general]
# dateFormat="%A, %B %d, %Y"
# the following has to been added to core/settings.py to the key 'general'
# the settings.py is used for default values
# dateFormat="%A, %B %d, %Y"
dateFormat = environment['runtime']['settingsManager'].getSetting(environment,'general', 'dateFormat')
# get the time formatted
@ -24,5 +23,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
@ -18,5 +24,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
@ -18,5 +24,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 'No Description found'
def run(self, environment):
if (environment['screenData']['oldCursorReview'] == None) and \
(environment['screenData']['newCursorReview'] == None):
@ -15,5 +21,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,12 @@ import termios
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
@ -16,5 +22,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,11 +3,15 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['input']['keyForeward'] = True
environment['runtime']['outputManager'].presentText(environment, 'Foreward next keypress', interrupt=True)
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ import math
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
@ -18,5 +24,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import line_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
# Prefer review cursor over text cursor
@ -21,5 +27,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,12 @@ import termios
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
@ -16,5 +22,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,10 +3,14 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,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 'No Description found'
def run(self, environment):
currClipboard = environment['commandBuffer']['currClipboard']
if currClipboard < 0:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import mark_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if (environment['commandBuffer']['Marks']['1'] == None) or \
(environment['commandBuffer']['Marks']['2'] == None):
@ -25,5 +31,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,12 @@ import termios
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
@ -21,5 +27,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import line_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ 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 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -7,6 +7,12 @@ import termios
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
@ -21,5 +27,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import line_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ 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 'No Description found'
def run(self, environment):
environment['screenData']['oldCursorReview'] = environment['screenData']['newCursorReview']
if environment['screenData']['newCursorReview'] == None:
@ -19,5 +25,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,10 +3,15 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['generalInformation']['running'] = False
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 'No Description found'
def run(self, environment):
environment['commandBuffer']['Marks']['1'] = None
environment['commandBuffer']['Marks']['2'] = None
@ -11,5 +17,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -4,6 +4,12 @@ from utils import char_utils
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['screenData']['newCursorReview'] = {'x':0,'y':0}
@ -11,5 +17,3 @@ 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 'No Description found'
def run(self, environment):
if environment['screenData']['newCursorReview'] == None:
environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True)
@ -21,5 +27,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,9 +3,13 @@
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
environment['runtime']['outputManager'].interruptOutput(environment)
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -5,14 +5,13 @@ import datetime
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
def getDescription(self):
return 'No Description found'
def run(self, environment):
#this is the way to load the settings:
# general is the section in the config file, timeFormat is the variable
# this has to been added to settings.conf in sectino [general]
# timeFormat=%I:%M%P
# the following has to been added to core/settings.py to the key 'general'
# the settings.py is used for default values
# 'timeFormat':"%I:%M%P",
timeFormat = environment['runtime']['settingsManager'].getSetting(environment,'general', 'timeFormat')
# get the time formatted
@ -24,5 +23,3 @@ 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 'No Description found'
def run(self, environment):
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'autoReadIncomming', str(not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'autoReadIncomming')))
@ -13,5 +19,3 @@ 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 'No Description found'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'braille', 'enabled'):
@ -13,5 +19,3 @@ 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 'No Description found'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled') or \
environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled') or \
@ -19,5 +25,3 @@ 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 'No Description found'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'sound', 'enabled'):
@ -13,5 +19,3 @@ 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 'No Description found'
def run(self, environment):
if environment['runtime']['settingsManager'].getSettingAsBool(environment, 'speech', 'enabled'):
@ -13,5 +19,3 @@ 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', 'interruptOnKeyPress'):
return environment
@ -17,5 +23,3 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

View File

@ -3,6 +3,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):
# TTY Change
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
@ -26,5 +32,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
@ -18,5 +24,4 @@ class command():
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass

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