fix: refactor TUI to use dispatcher pattern

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-02 14:33:11 +00:00
parent d6ca5a0079
commit 6ce8f42dd8
2 changed files with 122 additions and 272 deletions

4
tui.h
View File

@@ -2,6 +2,7 @@
#define TUI_H
#include "engine.h"
#include "dispatcher.h"
// Initialize TUI
void tui_init(Engine *engine);
@@ -12,7 +13,4 @@ void tui_run(Engine *engine);
// Cleanup TUI
void tui_cleanup(void);
// Handle command mode input (after pressing ':')
void tui_handle_command_mode(Engine *engine);
#endif // TUI_H