]> Zhao Yanbai Git Server - minix.git/blob - lib/libcurses/move.c
e5059c959b9e477b34196157efe818a163c6807a
[minix.git] / lib / libcurses / move.c
1 #include <curses.h>
2 #include "curspriv.h"
3
4 /****************************************************************/
5 /* Wmove() moves the cursor in window 'win' to position (x,y). */
6 /****************************************************************/
7
8 int wmove(win, y, x)
9 WINDOW *win;
10 int y;
11 int x;
12 {
13 if ((x<0) || (x>win->_maxx) || (y<win->_regtop) || (y>win->_regbottom))
14 return(ERR);
15 win->_curx = x;
16 win->_cury = y;
17 return(OK);
18 }