Added helper functions for ncurses

This commit is contained in:
2023-03-29 14:47:15 -05:00
parent 2492678652
commit f0313dc338

16
ncurses_helpers.h Normal file
View File

@@ -0,0 +1,16 @@
#include <ncurses.h>
int getmaxy(WINDOW* window) {
int y;
int x;
getmaxyx(window,y,x);
return y;
}
int getmaxx(WINDOW* window) {
int y;
int x;
getmaxyx(window,y,x);
return x;
}