#include <curses.h>
getmaxyx(Window, Y, X); WINDOW *Window; int Y, X;
The getmaxyx subroutine returns the size of a window. The size is returned as the number of rows and columns in the window. The values are stored in integers Y and X.
Window | Identifies the window whose size to get. |
Y | Contains the number of rows in the window. |
X | Contains the number of columns in the window. |
To obtain the size of the my_win window, use:
WINDOW *my_win; int y,x; getmaxyx(my_win, y, x);
Integers y and x will contain the size of the window.
This subroutine is part of Base Operating System (BOS) Runtime.
Controlling the Cursor with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Curses Overview for Programming in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.