Added helper functions for ncurses
This commit is contained in:
16
ncurses_helpers.h
Normal file
16
ncurses_helpers.h
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user