[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Base Operating System and Extensions Technical Reference, Volume 2

getyx Macro

Purpose

Returns the coordinates of the logical cursor in the specified window.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>
getyx(Window, Line, Column)
WINDOW *Window;
int Line, Column;

Description

The getyx macro returns the coordinates of the logical cursor in the specified window.

Parameters

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.

Example

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);

Implementation Specifics

This macro is part of Base Operating System (BOS) Runtime.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]