Files
ncac/ui/base.c
2020-06-01 21:07:31 -07:00

18 lines
273 B
C

#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);
}