summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/main.py b/main.py
index a65c706..3b40e33 100644
--- a/main.py
+++ b/main.py
@@ -13,11 +13,8 @@ async def on_tab():
def main():
messages = []
with cursed.Console() as c:
- def redraw(messages):
- cursed.redraw(c.stdscr, messages)
-
tele.messages = messages
- tele.redraw = redraw
+ tele.redraw = lambda message: c.redraw(message)
with tele.client:
tele.client.start()
tele.client.loop.run_until_complete(cursed.start(c, on_str, on_tab, messages))