Added helper functions for ncurses
parent
2492678652
commit
f0313dc338
@ -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;
|
||||
}
|
Loading…
Reference in New Issue