From 2049c11d4f2f1b2bfa48c23b9eba6cb1babfc812 Mon Sep 17 00:00:00 2001 From: nasrlol Date: Mon, 9 Dec 2024 21:30:52 +0100 Subject: trying out a fix for the input handling with curses --- source/main_cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/main_cli.py') 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. -- cgit v1.2.3-70-g09d2