feat: add ncurses-based TUI frontend with 8x8 clip grid and keyboard controls

Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
Loic Coenen
2026-05-01 09:48:59 +00:00
parent 9b1959e13d
commit 4573eb0201
5 changed files with 775 additions and 11 deletions

View File

@@ -1,28 +1,38 @@
CC = gcc
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L
LDFLAGS = -ljack -lm
LDFLAGS = -ljack -lm -lncurses
all: jack-looper test_engine
all: jack-looper test_engine test_tui
jack-looper: main.o engine.o
jack-looper: main.o engine.o tui.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
test_engine: test_engine.o engine.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
main.o: main.c engine.h
test_tui: test_tui.o engine.o
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
main.o: main.c engine.h tui.h
$(CC) $(CFLAGS) -c -o $@ $<
engine.o: engine.c engine.h
$(CC) $(CFLAGS) -c -o $@ $<
tui.o: tui.c tui.h engine.h
$(CC) $(CFLAGS) -c -o $@ $<
test_engine.o: test_engine.c engine.h
$(CC) $(CFLAGS) -c -o $@ $<
test_tui.o: test_tui.c engine.h tui.h
$(CC) $(CFLAGS) -c -o $@ $<
.PHONY: all clean test
clean:
rm -f *.o jack-looper test_engine
rm -f *.o jack-looper test_engine test_tui
test: test_engine
test: test_engine test_tui
./test_engine
./test_tui