source: trunk/minix/lib/curses/mvcursor.c@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 496 bytes
RevLine 
[9]1#include <curses.h>
2#include "curspriv.h"
3
4/****************************************************************/
5/* Mvcur(oldy,oldx,newy,newx) the display cursor to <newy,newx> */
6/****************************************************************/
7
8int mvcur(oldy, oldx, newy, newx)
9int oldy;
10int oldx;
11int newy;
12int newx;
13{
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);
20}
Note: See TracBrowser for help on using the repository browser.