Commit | Line | Data |
---|---|---|
45d02bb5 KA |
1 | # include "curses.ext" |
2 | ||
3 | /* | |
4 | * relocate the starting position of a window | |
5 | * | |
6 | * %G% (Berkeley) @(#)mvwin.c 1.1 | |
7 | */ | |
8 | ||
9 | mvwin(win, by, bx) | |
10 | reg WINDOW *win; | |
11 | reg int by, bx; { | |
12 | ||
13 | if (by + win->_maxy > LINES || bx + win->_maxx > COLS) | |
14 | return ERR; | |
15 | win->_begy = by; | |
16 | win->_begx = bx; | |
17 | touchwin(win); | |
18 | return OK; | |
19 | } |