. use library function to parse memory string
[minix3.git] / lib / curses / mvcursor.c
blobe16615439100646db3a0e668583aff3f2ab0665a
1 #include <curses.h>
2 #include "curspriv.h"
4 /****************************************************************/
5 /* Mvcur(oldy,oldx,newy,newx) the display cursor to <newy,newx> */
6 /****************************************************************/
8 int mvcur(oldy, oldx, newy, newx)
9 int oldy;
10 int oldx;
11 int newy;
12 int newx;
14 if ((newy >= LINES) || (newx >= COLS) || (newy < 0) || (newx < 0))
15 return(ERR);
16 poscur(newy, newx);
17 _cursvar.cursrow = newy;
18 _cursvar.curscol = newx;
19 return(OK);