--- /dev/null
+/* ncurses doesn't support multiline menu items,
+ * so i wrote my own menu lib */
+
+typedef struct Menu Menu;
+typedef struct MenuItem MenuItem;
+
+extern Menu* create_menu(MenuItem* item_list);
+extern int set_menu_items(Menu* menu, MenuItem* item_list);
+extern MenuItem* get_menu_items(Menu* menu);
render.o: render.c headers/render.h
$(CC) -c render.c
-taskasaur: taskasaur.c parser.o render.o
- $(CC) -o $@ $^ -lncurses -lmenu -lmd4c
+menu.o: menu.c headers/menu.h
+ $(CC) -c menu.c
+
+taskasaur: taskasaur.c parser.o render.o menu.o
+ $(CC) -o $@ $^ -lncurses -lmd4c
clean:
rm taskasaur *.o
--- /dev/null
+
+#include <stddef.h>
+
+#include "headers/menu.h"
+
+typedef struct MenuItem {
+ char* contents;
+} MenuItem;
+
+typedef struct Menu {
+ MenuItem* menu_items;
+ int menu_length;
+ int selected_item;
+} Menu;
+
+
+Menu*
+create_menu(MenuItem* item_list)
+{
+ return NULL;
+}
+
+int
+set_menu_items(Menu* menu, MenuItem* item_list)
+{
+ return 0;
+}
+
+MenuItem*
+get_menu_items(Menu* menu)
+{
+ return NULL;
+}
--- /dev/null
+.TH TASKASAUR 1 2021-01-22
+.SH NAME
+taskasaur \- suckless kanban
+.SH SYNOPSIS
+.B taskasaur
+[taskasaur options]
+.SH DESCRIPTION
+\fBtaskasaur\fP is a suckless style kanban program that runs on the command line with ncurses graphics. It stores data in the form of markdown for portability and readability.
+.SH OPTIONS
+.SH AUTHORS
+\fBtaskasaur\fP was written by Daniel Liu
+.SH REPORTING BUGS
+Please open an issue at https://github.com/MrPicklePinosaur/taskasaur