make X autodetect working, cleanups, remove unecressary returns, shotdown of the drivers in the managers
This commit is contained in:
@ -1,25 +0,0 @@
|
||||
#!/bin/python
|
||||
|
||||
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
|
||||
if environment['screenData']['newTTY'] != environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
# if environment['screenData']['newCursor'] == environment['screenData']['oldCursor'] and\
|
||||
# environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
|
||||
# return environment
|
||||
if environment['input']['currShortcut'] != '':
|
||||
return environment
|
||||
environment['runtime']['outputManager'].interruptOutput(environment)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
@ -10,11 +10,10 @@ class command():
|
||||
def getDescription(self):
|
||||
return ''
|
||||
def run(self, environment):
|
||||
|
||||
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
|
||||
return environment
|
||||
environment['runtime']['outputManager'].playSoundIcon(environment,'ChangeTTY')
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=True)
|
||||
environment['runtime']['outputManager'].presentText(environment, "screen " + str(environment['screenData']['newTTY']),soundIcon='ChangeTTY', interrupt=True)
|
||||
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=False)
|
||||
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
|
Reference in New Issue
Block a user