2 /***************************************************************************
4 ****************************************************************************
5 * ncurses is copyright (C) 1992-1995 *
7 * zmbenhal@netcom.com *
9 * esr@snark.thyrsus.com *
11 * Permission is hereby granted to reproduce and distribute ncurses *
12 * by any means and for any fee, whether alone or as part of a *
13 * larger distribution, in source or in binary form, PROVIDED *
14 * this notice is included with any such distribution, and is not *
15 * removed from any of its header files. Mention of ncurses in any *
16 * applications linked with it is highly appreciated. *
18 * ncurses comes AS IS with no warranty, implied or expressed. *
20 ***************************************************************************/
26 ** The routine wmove().
30 #include <curses.priv.h>
32 MODULE_ID("$Id: lib_move.c,v 1.6 1997/02/02 00:00:47 tom Exp $")
35 wmove(WINDOW *win, int y, int x)
37 T((T_CALLED("wmove(%p,%d,%d)"), win, y, x));
39 if (x >= 0 && x <= win->_maxx &&
40 y >= 0 && y <= win->_maxy)
42 win->_curx = (short)x;
43 win->_cury = (short)y;
45 win->_flags &= ~_WRAPPED;
46 win->_flags |= _HASMOVED;