diff options
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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__": |
