summaryrefslogtreecommitdiff
path: root/source/main_cli.py
diff options
context:
space:
mode:
authornasrlol <nsrddyn@gmail.com>2024-12-09 21:30:52 +0100
committernasrlol <nsrddyn@gmail.com>2024-12-09 21:30:52 +0100
commit2049c11d4f2f1b2bfa48c23b9eba6cb1babfc812 (patch)
tree6bdce13d8d2c9aa23e42a3d3ca97e52d547d9d44 /source/main_cli.py
parent9a390f7b41e980d05c1c05c669febc16f6826ecd (diff)
trying out a fix for the input handling with curses
Diffstat (limited to 'source/main_cli.py')
-rw-r--r--source/main_cli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/main_cli.py b/source/main_cli.py
index 53f49aa..b474551 100644
--- a/source/main_cli.py
+++ b/source/main_cli.py
@@ -98,6 +98,14 @@ def draw_menu(stdscr):
break # Exit the while loop and terminate the program
+def input_handling():
+ while True:
+ key = stdscr.getkey()
+ stdcr.addstr(f"key: {key}")
+ stdcr.refresh()
+ stdcr.getch()
+
+
def main():
"""
The main function wraps the curses functionality and runs the application.