source: trunk/minix/lib/curses/move.c@ 9

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

Minix 3.1.2a

File size: 435 bytes
Line 
1#include <curses.h>
2#include "curspriv.h"
3
4/****************************************************************/
5/* Wmove() moves the cursor in window 'win' to position (x,y). */
6/****************************************************************/
7
8int wmove(win, y, x)
9WINDOW *win;
10int y;
11int 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}
Note: See TracBrowser for help on using the repository browser.