Erase pads instead of clearing them, fixes #21

This commit is contained in:
Yohann D'ANELLO
2020-11-26 22:20:14 +01:00
parent 3e7dabc94e
commit 1e48bd16b3
5 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ class LogsDisplay(Display):
print(type(self.logs.messages), flush=True)
messages = self.logs.messages[-self.height:]
messages = messages[::-1]
self.pad.clear()
self.pad.erase()
for i in range(min(self.height, len(messages))):
self.addstr(self.pad, self.height - i - 1, self.x,
messages[i][:self.width])