2016-07-12 17:09:11 -04:00
|
|
|
#!/bin/python
|
|
|
|
|
|
|
|
class command():
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
def run(self, environment):
|
2016-08-05 22:47:41 -04:00
|
|
|
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'interruptOnKeyPress'):
|
|
|
|
return environment
|
|
|
|
# if environment['screenData']['newCursor'] == environment['screenData']['oldCursor'] and\
|
|
|
|
# environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
|
|
|
|
# return environment
|
2016-07-16 18:56:18 -04:00
|
|
|
environment['runtime']['outputManager'].interruptOutput(environment)
|
2016-07-12 17:09:11 -04:00
|
|
|
return environment
|
|
|
|
def setCallback(self, callback):
|
|
|
|
pass
|
|
|
|
def shutdown(self):
|
|
|
|
pass
|