diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-11 16:08:22 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-11 16:08:22 +0100 |
| commit | abaa7713a73af3afb94c249c652082d2a9d3b097 (patch) | |
| tree | 5e2307a96933f9c4f21540b0934c5f3d10460487 /main.py | |
| parent | 1bb97e0d50c9e542233304a6f3fbd4ed11b3c999 (diff) | |
| download | tg-abaa7713a73af3afb94c249c652082d2a9d3b097.tar.gz | |
show wip typing, read backspace and fix åäö
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__": |
