From 9a742a6bcbc4df9af0ed576fc2b457f58fd5e590 Mon Sep 17 00:00:00 2001 From: Agnes Date: Sat, 6 Mar 2021 22:12:01 +0100 Subject: wip --- main.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 5336d05..d89f93e 100644 --- a/main.py +++ b/main.py @@ -9,4 +9,13 @@ async def on_tab(): print("tab") -asyncio.new_event_loop().run_until_complete(cursed.start(on_str, on_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() -- cgit v1.2.1