make it work

This commit is contained in:
chrys 2018-05-25 02:54:52 +02:00
parent a8a42e42da
commit 15b93e505f

View File

@ -43,11 +43,11 @@ class Terminal:
#columns = 2 #columns = 2
#rows = 3 #rows = 3
#[buffer[x][0] + [False, 'default', 'default'] for line in (buffer[x] for x in range(columns))] #[buffer[x][0] + [False, 'default', 'default'] for line in (buffer[x] for x in range(columns))]
allAttributes = [[attribute[1:] + [False, 'default', 'default'] for attribute in line] for line in buffer] #allAttributes = [[attribute[1:] + [False, 'default', 'default'] for attribute in line] for line in buffer]
#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()
return {"cursor": (cursor.x, cursor.y), return {"cursor": (cursor.x, cursor.y),