Update set_clipboard_mark.py

This commit is contained in:
chrys87 2016-08-23 17:22:16 +02:00 committed by GitHub
parent 1341c525d0
commit 55bcff48e1

View File

@ -1 +1,18 @@
#!/bin/python
class command():
def __init__(self):
pass
def run(self, environment):
if len(environment['commandBuffer']['clipboard']) == 0:
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
return environment
environment['commandBuffer']['currClipboard'] = 0
environment['runtime']['outputManager'].presentText(environment, environment['commandBuffer']['clipboard'][environment['commandBuffer']['currClipboard']], interrupt=True)
return environment
def setCallback(self, callback):
pass
def shutdown(self):
pass