Rev | Line | |
---|
[9] | 1 | #include <curses.h>
|
---|
| 2 | #include "curspriv.h"
|
---|
| 3 |
|
---|
| 4 | /****************************************************************/
|
---|
| 5 | /* Mvcur(oldy,oldx,newy,newx) the display cursor to <newy,newx> */
|
---|
| 6 | /****************************************************************/
|
---|
| 7 |
|
---|
| 8 | int mvcur(oldy, oldx, newy, newx)
|
---|
| 9 | int oldy;
|
---|
| 10 | int oldx;
|
---|
| 11 | int newy;
|
---|
| 12 | int newx;
|
---|
| 13 | {
|
---|
| 14 | if ((newy >= LINES) || (newx >= COLS) || (newy < 0) || (newx < 0))
|
---|
| 15 | return(ERR);
|
---|
| 16 | poscur(newy, newx);
|
---|
| 17 | _cursvar.cursrow = newy;
|
---|
| 18 | _cursvar.curscol = newx;
|
---|
| 19 | return(OK);
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.