頭檔案
#include <curses.h>
函式原型
void getmaxyx(WINDOW * win, int y, int x);
範例
#include<curses.h>
#include<stdlib.h>
#include<stdio.h>
int main(){
int maxy = 0, maxx = 0;
initscr();
getmaxyx(stdscr, maxy, maxx);
endwin();
printf("maxy = %d\t,maxx = %d\n", maxy, maxx);
return 0;
}