21 lines
517 B
C
21 lines
517 B
C
//TODO these header files should be split into 2 files file.c and file.h
|
|
//file.h will just contain the decleration and file.c will contain the code
|
|
|
|
//TODO This file should have time aswell
|
|
#include <curses.h>
|
|
|
|
int zom_scrinit(void) {
|
|
puts("\e[2J");
|
|
return 0;
|
|
}
|
|
int zom_screxit(void) {
|
|
return 0;
|
|
}
|
|
int zom_putcharat(int x, int y, char chara) {
|
|
mvaddch(y, x, chara); //flipped to match screen coords
|
|
printf("\e[%d;%dH%c", y, x, chara);
|
|
return 0;
|
|
}
|
|
char zom_getch(void) {
|
|
return getch();
|
|
}
|