From 50ef8d4e4b1ef812507fc0f368bd0160e6cea9a7 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 24 Mar 2018 17:49:15 +0100 Subject: [PATCH] update ToDo --- TODO v2.0 | 16 +++++++++++++++- src/fenrirscreenreader/screenDriver/ptyDriver.py | 11 ----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/TODO v2.0 b/TODO v2.0 index 156e74ba..23d9aee4 100644 --- a/TODO v2.0 +++ b/TODO v2.0 @@ -77,10 +77,24 @@ Braille Support: Driver (screen, input): [W] PTY Screen driver (to use gnome-terminal and other terminal emulators) + [X] emulation + [X] basic reading + [W] attributes + [] detect colum/ lines + [] resize on colum / line change + [] make shell command configurable (or detect it) + [] stop emulation properly + [] make pasteing text work again https://docs.python.org/3.2/library/pty.html http://sqizit.bartletts.id.au/2011/02/14/pseudo-terminals-in-python/ https://blog.konpat.me/pythons-pseudo-terminal-pty-examples/ -[W] PTY Input driver +[W] PTY Input driver + [W] new event for byte shortcuts (escape sequences) + [] create driver, set flag that it is used in emulation + [] handle byte shortcuts + [] detect shortcuts + [] write/ consume them (controll it at all) + [] create keyboard layout [] ATK input driver (don't grab on graphical interface) https://git.linux-a11y.org/AIT/pyatspi2/src/master/examples/keypress.py diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index a1fa2b2a..b551ef60 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -104,7 +104,6 @@ class driver(screenDriver): eventQueue.put({"Type":fenrirEventType.ScreenUpdate, "Data":self.createScreenEventData(terminal.dump()) }) - #_ = self.createScreenEventData(terminal.dump()) if debug: print('after p_out') # input @@ -145,16 +144,6 @@ class driver(screenDriver): 'attributes': content['attributes'], 'screenUpdateTime': time.time(), } - #print(content['lines'][0]) - #print('pre',eventData['text']) - #for line in content['lines']: - # #print('line',line) - # for e in line: - # #print('loop|',e,'|') - # eventData['text'] += e[0] - #print(len(eventData['text']), type(eventData['text'])) - #print(eventData['text']) - #eventData['text'] = '' return eventData.copy() def getFenrirBGColor(self, attribute):