38 lines
885 B
Python
38 lines
885 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Fenrir TTY screen reader
|
|
# By Chrys, Storm Dragon, and contributers.
|
|
|
|
from fenrirscreenreader.core import debug
|
|
import time
|
|
|
|
screenData = {
|
|
'columns': 0,
|
|
'lines': 0,
|
|
'oldDelta': '',
|
|
'oldAttribDelta': '',
|
|
'oldNegativeDelta': '',
|
|
'oldCursorReview': None,
|
|
'oldCursorAttrib': None,
|
|
'oldCursor': {'x': 0, 'y': 0},
|
|
'oldContentBytes': b'',
|
|
'oldContentText': '',
|
|
'oldContentAttrib': None,
|
|
'oldApplication': '',
|
|
'oldTTY': None,
|
|
'newDelta': '',
|
|
'newNegativeDelta': '',
|
|
'newAttribDelta': '',
|
|
'newCursorReview': None,
|
|
'newCursorAttrib': None,
|
|
'newCursor': {'x': 0, 'y': 0},
|
|
'newContentBytes': b'',
|
|
'newContentText': '',
|
|
'newContentAttrib': None,
|
|
'newTTY': '0',
|
|
'newApplication': '',
|
|
'lastScreenUpdate': time.time(),
|
|
'autoIgnoreScreens': [],
|
|
}
|