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

Last change on this file since 12 was 9, checked in by Mattia Monga, 14 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.