From a1c01935fb155424fe56b5d86e371b57582b8063 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 27 Mar 2018 12:11:43 +0200 Subject: [PATCH] disable attribute code until we finish it --- src/fenrirscreenreader/screenDriver/ptyDriver.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/fenrirscreenreader/screenDriver/ptyDriver.py b/src/fenrirscreenreader/screenDriver/ptyDriver.py index 74ce7127..45f732ba 100644 --- a/src/fenrirscreenreader/screenDriver/ptyDriver.py +++ b/src/fenrirscreenreader/screenDriver/ptyDriver.py @@ -36,11 +36,13 @@ class Terminal: cursor = self.screen.cursor allAttributes = [] text = '\n'.join(self.screen.display) - for y in range(self.screen.lines): - line = self.screen.buffer[y] - attributes = [(char.reverse, char.fg, char.bg, char.bold, char.italics, char.underscore, char.strikethrough) - for char in (line[x] for x in range(self.screen.columns))] - allAttributes.append((attributes)) + start = time.time() + #for y in range(self.screen.lines): + # line = self.screen.buffer[y] + # attributes = [(char.reverse, char.fg, char.bg, char.bold, char.italics, char.underscore, char.strikethrough) + # for char in (line[x] for x in range(self.screen.columns))] + # allAttributes.append((attributes)) + #print(time.time() -start) self.screen.dirty.clear() return {"cursor": (cursor.x, cursor.y), 'lines': self.screen.lines,