Debian Codegraph @

src/fenrirscreenreader/core/commandData.py

raw
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3
4 # Fenrir TTY screen reader
5 # By Chrys, Storm Dragon, and contributors.
6
7 import time
8
9 from fenrirscreenreader.core import debug
10
11 # used as shared memory between commands
12 # use this in your own commands
13 command_buffer = {
14 "enableSpeechOnKeypress": False,
15 "Marks": {"1": None, "2": None},
16 "bookMarks": {},
17 "windowArea": {},
18 }
19
20 # used by the command_manager
21 command_info = {
22 # 'curr_command': '',
23 "lastCommandExecutionTime": time.time(),
24 "lastCommandRequestTime": time.time(),
25 "lastCommand": "",
26 "lastCommandSection": "",
27 "lastCommandRunTime": 0,
28 }