summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/main.py b/main.py
index 51ab636..5336d05 100644
--- a/main.py
+++ b/main.py
@@ -1,9 +1,12 @@
import cursed
+import asyncio
-def on_str(s):
+async def on_str(s):
print(s)
-def on_tab():
- print("Nu tryckte nån på tab")
-cursed.start(on_str, on_tab)
+async def on_tab():
+ print("tab")
+
+
+asyncio.new_event_loop().run_until_complete(cursed.start(on_str, on_tab))