20 lines
496 B
C
Executable file
20 lines
496 B
C
Executable file
#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);
|
|
}
|