date and time created 83/03/27 16:12:36 by arnold
[unix-history] / usr / src / lib / libcurses / move.c
CommitLineData
0114689d
KA
1# include "curses.ext"
2
3/*
4 * This routine moves the cursor to the given point
5 *
6 * @(#)move.c 1.1 (Berkeley) %G%
7 */
8wmove(win, y, x)
9reg WINDOW *win;
10reg int y, x; {
11
12# ifdef DEBUG
13 fprintf(outf, "MOVE to (%d, %d)\n", y, x);
14# endif
15 if (x >= win->_maxx || y >= win->_maxy)
16 return ERR;
17 win->_curx = x;
18 win->_cury = y;
19 return OK;
20}