From e06bd164237a5cd6ea145c5a3740c025e99e8977 Mon Sep 17 00:00:00 2001 From: chrys Date: Fri, 4 Nov 2016 22:24:15 +0100 Subject: [PATCH] add command for toggle highlight tracking --- .../onInput/56000-highlight_tracking.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/fenrir/commands/onInput/56000-highlight_tracking.py diff --git a/src/fenrir/commands/onInput/56000-highlight_tracking.py b/src/fenrir/commands/onInput/56000-highlight_tracking.py new file mode 100644 index 00000000..4f75f498 --- /dev/null +++ b/src/fenrir/commands/onInput/56000-highlight_tracking.py @@ -0,0 +1,24 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return 'enables or disables tracking of highlighted' + + def run(self): + if not self.env['runtime']['settingsManager'].getSettingAsBool('focus', 'highlight'): + return + self.env['runtime']['outputManager'].presentText(self.env['screenData']['newAttribDelta'], soundIcon='', interrupt=True) + + def setCallback(self, callback): + pass