Next: Getting a rendered character from the window, Previous: Receiving strings from the keyboard, Up: The basic curses library [Contents][Index]
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.
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.
The procedure getbegyx returns the beginning coordinates of a
window as two element list (y x).
The procedure getmaxyx returns the size of a window as two
element list (y x).