Returns the coordinates of the logical cursor in the specified window.
#include <curses.h>
getyx( Window, Line, Column)
WINDOW *Window;
int Line, Column;
The getyx macro returns the coordinates of the logical cursor in the specified window.
Window | Identifies the window to get the cursor location from. |
Column | Holds the column coordinate of the logical cursor. |
Line | Holds the line or row coordinate of the logical cursor. |
To get the location of the logical cursor in the user-defined window my_window and then put these coordinates in the user-defined integer variables Line and Column, enter:
WINDOW *my_window; int line, column; getyx(my_window, line, column);
This macro is part of Base Operating System (BOS) Runtime.
Controlling the Cursor with Curses in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
Curses Overview for Programming in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.