Next: , Previous: , Up: The basic curses library   [Contents][Index]


5.2.19 Cursor location and window coordinates

Procedure: getyx win
Procedure: getcurx win
Procedure: getcury win

The getyx procedure returns the current cursor position as a list containing two integers. The first is the y position and the second is the x position.

The other two procedures return the x y positions respectively.

Procedure: getparyx win
Procedure: getparx win
Procedure: getpary win

If win is a subwindow, the getparyx procedure places the beginning coordinates of the subwindow relative to the parent window into two element list (y x). Otherwise, (-1 -1) is returned.

The other two procedures return the x and y respectively.

Procedure: getbegyx win
Procedure: getbegx win
Procedure: getbegy win

The procedure getbegyx returns the beginning coordinates of a window as two element list (y x).

Procedure: getmaxyx win
Procedure: getmaxx win
Procedure: getmaxy win

The procedure getmaxyx returns the size of a window as two element list (y x).