From 640e356fea59565d21c1a2687100b64794f709e1 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Thu, 24 May 2018 12:02:34 +0200 Subject: [PATCH] Update ptyDriver.py --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index 175fed63..62792739 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -36,7 +36,10 @@ class Terminal: cursor = self.screen.cursor allAttributes = [] text = '\n'.join(self.screen.display) - start = time.time() + start = time.time() + #buffer self.screen.buffer + #buffer = [[[1,1],[1,2]], [[2,1],[2,2]], [[3,1],[3,2]]] + #[buffer[x][y] for x in xrange(0,2) for y in xrange(0,1)] for y in range(self.screen.lines): line = self.screen.buffer[y] attributes = [list(char[1:]) + [False, 'default', 'default'] for char in (line[x] for x in range(self.screen.columns))]