From 005bc7f40af769fa82ceecc0f7a586cfe61549ef Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 25 Oct 2017 23:35:45 +0200 Subject: [PATCH] add copy last echo to clipboard --- src/fenrir/core/outputManager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrir/core/outputManager.py b/src/fenrir/core/outputManager.py index 415f10c4..e707bfbf 100644 --- a/src/fenrir/core/outputManager.py +++ b/src/fenrir/core/outputManager.py @@ -10,7 +10,7 @@ import string, time class outputManager(): def __init__(self): - pass + self.lastEcho = '' def initialize(self, environment): self.env = environment self.env['runtime']['settingsManager'].loadDriver(\ @@ -37,11 +37,12 @@ class outputManager(): if toAnnounceCapital: if self.playSoundIcon('capital', False): toAnnounceCapital = False - + self.lastEcho = text self.speakText(text, interrupt, ignorePunctuation,toAnnounceCapital) if flush: self.brailleText(text, flush) - + def getLastEcho(self): + return self.lastEcho def speakText(self, text, interrupt=True, ignorePunctuation=False, announceCapital=False): if not self.env['runtime']['settingsManager'].getSettingAsBool('speech', 'enabled'): self.env['runtime']['debug'].writeDebugOut("Speech disabled in outputManager.speakText",debug.debugLevel.INFO)