# include "curses.ext" /* * relocate the starting position of a window */ mvwin(win, by, bx) reg WINDOW *win; reg int by, bx; { if (by + win->_maxy > LINES || bx + win->_maxx > COLS) return ERR; win->_begy = by; win->_begx = bx; if(by + win->_maxy == LINES) win->_flags |= _SCROLLWIN; else win->_flags &= ~_SCROLLWIN; if(bx + win->_maxx == COLS) win->_flags |= _ENDLINE; else win->_flags &= ~_ENDLINE; touchwin(win); return OK; }