feat: add standalone client with FIFO command interface

This commit is contained in:
Loic Coenen
2026-05-13 19:48:53 +00:00
committed by Loic Coenen (aider)
parent 5ad831f50c
commit 998406616a
5 changed files with 127 additions and 1499 deletions

8
client/main.c Normal file
View File

@@ -0,0 +1,8 @@
#include "tui.h"
int main(void) {
tui_init();
tui_run();
tui_cleanup();
return 0;
}

10
client/makefile Normal file
View File

@@ -0,0 +1,10 @@
CC ?= gcc
CFLAGS ?= -Wall -Wextra -g -Isrc
LDFLAGS ?= -lncurses -lm
looper-client: src/tui.c main.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
.PHONY: clean
clean:
rm -f looper-client

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,18 +1,8 @@
#ifndef TUI_H
#define TUI_H
#include "engine.h"
#include "dispatcher.h"
#define NUM_GRIDS 8
// Initialize TUI
void tui_init(Engine *engine);
// Run the TUI main loop
void tui_run(Engine *engine);
// Cleanup TUI
void tui_init(void);
void tui_run(void);
void tui_cleanup(void);
#endif // TUI_H
#endif