2016-07-08 19:36:27 -04:00
|
|
|
#!/bin/python
|
2016-09-19 16:15:58 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Fenrir TTY screen reader
|
|
|
|
# By Chrys, Storm Dragon, and contributers.
|
|
|
|
|
|
|
|
from core import debug
|
2016-07-10 17:02:17 -04:00
|
|
|
import time
|
2016-07-08 19:36:27 -04:00
|
|
|
|
2016-08-22 18:51:39 -04:00
|
|
|
|
|
|
|
# used as shared memory between commands
|
|
|
|
# use this in your own commands
|
|
|
|
commandBuffer = {
|
2016-09-12 17:05:35 -04:00
|
|
|
'genericList':[],
|
|
|
|
'genericListSource':'',
|
|
|
|
'genericListSelection': 0,
|
2016-08-23 18:41:16 -04:00
|
|
|
'clipboard':[],
|
2016-08-22 18:51:39 -04:00
|
|
|
'currClipboard': 0,
|
2016-09-22 17:42:50 -04:00
|
|
|
'Marks':{'1':None, '2':None},
|
|
|
|
'bookMarks':{},
|
2016-09-24 15:35:21 -04:00
|
|
|
'windowArea':{},
|
2016-08-22 18:51:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
# used by the commandManager
|
2016-07-08 19:36:27 -04:00
|
|
|
commandInfo = {
|
|
|
|
'currCommand': '',
|
2016-09-14 17:06:56 -04:00
|
|
|
'lastCommandExecutionTime': time.time(),
|
2016-09-22 17:42:50 -04:00
|
|
|
'lastCommandRequestTime': time.time(),
|
2016-07-08 19:36:27 -04:00
|
|
|
}
|
|
|
|
|
2016-08-22 18:51:39 -04:00
|
|
|
# used by the commandManager
|
2016-07-08 19:36:27 -04:00
|
|
|
commands = {
|
2016-07-12 17:09:11 -04:00
|
|
|
'onInput':{
|
2016-07-10 09:43:15 -04:00
|
|
|
},
|
|
|
|
'onScreenChanged':{
|
|
|
|
},
|
2016-09-21 17:30:27 -04:00
|
|
|
'onScreenUpdate':{
|
2016-09-21 17:46:03 -04:00
|
|
|
},
|
|
|
|
'onApplicationChange':{
|
|
|
|
},
|
2016-07-10 09:43:15 -04:00
|
|
|
'commands':{
|
2016-09-21 17:46:03 -04:00
|
|
|
},
|
2016-09-22 05:52:53 -04:00
|
|
|
'onSwitchApplicationProfile':{
|
|
|
|
},
|
2016-07-08 19:36:27 -04:00
|
|
|
}
|