This commit is contained in:
2020-06-01 19:14:01 -07:00
parent 87d2b360bb
commit 98e9bc5e70
15 changed files with 77 additions and 100 deletions

18
ui/base.c Normal file
View File

@@ -0,0 +1,18 @@
#include "base.h"
#include <curses.h>
#include <string.h>
void draw_text(char *text, int *x, int *y) {
if (!text || strnlen(text, 1) == 0) return;
mvaddch(*y, *x, *text);
++text;
for (; *text != '\0'; ++text) {
addch(*text);
}
getyx(stdscr, *y, *x);
}