| 1 |
#!/usr/bin/env python3 |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
# Fenrir TTY screen reader |
| 5 |
# By Chrys, Storm Dragon, and contributors. |
| 6 |
|
| 7 |
from fenrirscreenreader.core import debug |
| 8 |
from fenrirscreenreader.core.i18n import _ |
| 9 |
|
| 10 |
|
| 11 |
class ScreenDriver: |
| 12 |
def __init__(self): |
| 13 |
self._is_initialized = False |
| 14 |
self.bgColorNames = { |
| 15 |
0: _("black"), |
| 16 |
1: _("blue"), |
| 17 |
2: _("green"), |
| 18 |
3: _("cyan"), |
| 19 |
4: _("red"), |
| 20 |
5: _("Magenta"), |
| 21 |
6: _("brown/yellow"), |
| 22 |
7: _("white"), |
| 23 |
} |
| 24 |
self.fgColorNames = { |
| 25 |
0: _("Black"), |
| 26 |
1: _("Blue"), |
| 27 |
2: _("Green"), |
| 28 |
3: _("Cyan"), |
| 29 |
4: _("Red"), |
| 30 |
5: _("Magenta"), |
| 31 |
6: _("brown/yellow"), |
| 32 |
7: _("Light gray"), |
| 33 |
8: _("Dark gray"), |
| 34 |
9: _("Light blue"), |
| 35 |
10: ("Light green"), |
| 36 |
11: _("Light cyan"), |
| 37 |
12: _("Light red"), |
| 38 |
13: _("Light magenta"), |
| 39 |
14: _("Light yellow"), |
| 40 |
15: _("White"), |
| 41 |
} |
| 42 |
|
| 43 |
def initialize(self, environment): |
| 44 |
self.env = environment |
| 45 |
self._is_initialized = True |
| 46 |
|
| 47 |
def shutdown(self): |
| 48 |
self._is_initialized = False |
| 49 |
|
| 50 |
def get_curr_screen(self): |
| 51 |
pass |
| 52 |
|
| 53 |
def inject_text_to_screen(self, text, screen=None): |
| 54 |
pass |
| 55 |
|
| 56 |
def get_curr_application(self): |
| 57 |
pass |
| 58 |
|
| 59 |
def get_session_information(self): |
| 60 |
pass |