From b8f4ae14d4a19177d1b839059471178a87bf8da5 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 23 Aug 2016 17:20:43 +0200 Subject: [PATCH] Update and rename present_marked_text.py to marked_text.py --- .../commands/commands/marked_text.py | 16 ++++++++++++++++ .../commands/commands/present_marked_text.py | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/fenrir-package/commands/commands/marked_text.py delete mode 100644 src/fenrir-package/commands/commands/present_marked_text.py diff --git a/src/fenrir-package/commands/commands/marked_text.py b/src/fenrir-package/commands/commands/marked_text.py new file mode 100644 index 00000000..97e2af63 --- /dev/null +++ b/src/fenrir-package/commands/commands/marked_text.py @@ -0,0 +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 diff --git a/src/fenrir-package/commands/commands/present_marked_text.py b/src/fenrir-package/commands/commands/present_marked_text.py deleted file mode 100644 index 8b137891..00000000 --- a/src/fenrir-package/commands/commands/present_marked_text.py +++ /dev/null @@ -1 +0,0 @@ -