fenrir/src/fenrir-package/commands/onScreenChanged/80000-screen_change_announcement.py

23 lines
824 B
Python
Raw Normal View History

2016-08-07 17:00:54 +02:00
#!/bin/python
class command():
def __init__(self):
pass
def initialize(self, environment):
return environment
def shutdown(self, environment):
return environment
2016-09-17 02:14:11 +02:00
def getDescription(self, environment):
return ''
2016-09-17 02:14:11 +02:00
2016-08-07 17:00:54 +02:00
def run(self, environment):
if environment['screenData']['newTTY'] == environment['screenData']['oldTTY']:
return environment
environment['runtime']['outputManager'].presentText(environment, "screen " + str(environment['screenData']['newTTY']),soundIcon='ChangeTTY', interrupt=True)
environment['runtime']['outputManager'].presentText(environment, environment['screenData']['newDelta'], interrupt=False)
2016-08-07 17:00:54 +02:00
return environment
def setCallback(self, callback):
pass