From d2ea8c120af18b0f231899c339c552612dc24f0a Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 23 Aug 2016 17:19:45 +0200 Subject: [PATCH] Update copy_marked_to_clipboard.py --- .../commands/commands/copy_marked_to_clipboard.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py index 8b137891..c7615ccf 100644 --- a/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py +++ b/src/fenrir-package/commands/commands/copy_marked_to_clipboard.py @@ -1 +1,16 @@ +#!/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