minix/lib/curses/mvcursor.c
2009-11-09 10:26:00 +00:00

20 lines
496 B
C

#include <curses.h>
#include "curspriv.h"
/****************************************************************/
/* Mvcur(oldy,oldx,newy,newx) the display cursor to <newy,newx> */
/****************************************************************/
int mvcur(oldy, oldx, newy, newx)
int oldy;
int oldx;
int newy;
int newx;
{
if ((newy >= LINES) || (newx >= COLS) || (newy < 0) || (newx < 0))
return(ERR);
poscur(newy, newx);
_cursvar.cursrow = newy;
_cursvar.curscol = newx;
return(OK);
}