Update ptyDriver.py

This commit is contained in:
chrys87 2018-05-24 10:01:28 +02:00 committed by GitHub
parent 58e7cec28b
commit 85ab1d2870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ class Terminal:
start = time.time() start = time.time()
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))]
allAttributes.append(attributes) allAttributes.append(attributes)
print(time.time() -start) print(time.time() -start)
self.screen.dirty.clear() self.screen.dirty.clear()