Rev | Line | |
---|
[9] | 1 | #include <curses.h>
|
---|
| 2 | #include "curspriv.h"
|
---|
| 3 |
|
---|
| 4 | /****************************************************************/
|
---|
| 5 | /* Wmove() moves the cursor in window 'win' to position (x,y). */
|
---|
| 6 | /****************************************************************/
|
---|
| 7 |
|
---|
| 8 | int wmove(win, y, x)
|
---|
| 9 | WINDOW *win;
|
---|
| 10 | int y;
|
---|
| 11 | int x;
|
---|
| 12 | {
|
---|
| 13 | if ((x<0) || (x>win->_maxx) || (y<win->_regtop) || (y>win->_regbottom))
|
---|
| 14 | return(ERR);
|
---|
| 15 | win->_curx = x;
|
---|
| 16 | win->_cury = y;
|
---|
| 17 | return(OK);
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.