1 /* Public Domain Curses */
5 RCSID("$Id: move.c,v 1.28 2008/07/13 16:08:18 wmcbrine Exp $")
7 /*man-start**************************************************************
12 int move(int y, int x);
13 int wmove(WINDOW *win, int y, int x);
16 The cursor associated with the window is moved to the given
17 location. This does not move the physical cursor of the
18 terminal until refresh() is called. The position specified is
19 relative to the upper left corner of the window, which is (0,0).
22 All functions return OK on success and ERR on error.
24 Portability X/Open BSD SYS V
28 **man-end****************************************************************/
30 int move(int y
, int x
)
32 PDC_LOG(("move() - called: y=%d x=%d\n", y
, x
));
34 if (!stdscr
|| x
< 0 || y
< 0 || x
>= stdscr
->_maxx
|| y
>= stdscr
->_maxy
)
43 int wmove(WINDOW
*win
, int y
, int x
)
45 PDC_LOG(("wmove() - called: y=%d x=%d\n", y
, x
));
47 if (!win
|| x
< 0 || y
< 0 || x
>= win
->_maxx
|| y
>= win
->_maxy
)