summaryrefslogtreecommitdiffstats
path: root/main.py
blob: d89f93e530db077a25cbcb30bace3771950be47e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import cursed
import asyncio

async def on_str(s):
    print(s)


async def on_tab():
    print("tab")


def main():
    print("hejhej")
    with cursed.Console() as c:
        print("hej")
        print(c)
        asyncio.new_event_loop().run_until_complete(cursed.start(c, on_str, on_tab))


if __name__=="__main__":
    main()