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 ***************************************************************************/
27 ** The routine mvwin().
31 #include <curses.priv.h>
33 MODULE_ID("$Id: lib_mvwin.c,v 1.3 1997/02/02 00:20:41 tom Exp $")
35 int mvwin(WINDOW *win, int by, int bx)
37 T((T_CALLED("mvwin(%p,%d,%d)"), win, by, bx));
39 if (win->_flags & _SUBWIN)
42 if (by + win->_maxy > screen_lines - 1
43 || bx + win->_maxx > screen_columns - 1
49 * Whether or not the window is moved, touch the window's contents so
50 * that a following call to 'wrefresh()' will paint the window at the
51 * new location. This ensures that if the caller has refreshed another
52 * window at the same location, that this one will be displayed.
56 returnCode(touchwin(win));