Update ptyDriver.py

This commit is contained in:
chrys87 2018-05-24 12:02:34 +02:00 committed by GitHub
parent 9cc192e38b
commit 640e356fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,9 @@ class Terminal:
allAttributes = [] allAttributes = []
text = '\n'.join(self.screen.display) 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): for y in range(self.screen.lines):
line = self.screen.buffer[y] line = self.screen.buffer[y]
attributes = [list(char[1:]) + [False, 'default', 'default'] for char in (line[x] for x in range(self.screen.columns))] attributes = [list(char[1:]) + [False, 'default', 'default'] for char in (line[x] for x in range(self.screen.columns))]