Commit | Line | Data |
---|---|---|
87c6fcf8 DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
7 | #ifndef lint | |
8 | static char sccsid[] = "@(#)move.c 5.1 (Berkeley) %G%"; | |
9 | #endif not lint | |
10 | ||
0114689d KA |
11 | # include "curses.ext" |
12 | ||
13 | /* | |
14 | * This routine moves the cursor to the given point | |
15 | * | |
0114689d KA |
16 | */ |
17 | wmove(win, y, x) | |
18 | reg WINDOW *win; | |
19 | reg int y, x; { | |
20 | ||
21 | # ifdef DEBUG | |
22 | fprintf(outf, "MOVE to (%d, %d)\n", y, x); | |
23 | # endif | |
24 | if (x >= win->_maxx || y >= win->_maxy) | |
25 | return ERR; | |
26 | win->_curx = x; | |
27 | win->_cury = y; | |
28 | return OK; | |
29 | } |