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