1: # include "curses.ext" 2: 3: /* 4: * This routine moves the cursor to the given point 5: * 6: * @(#)move.c 1.1 (Berkeley) 3/27/83 7: */ 8: wmove(win, y, x) 9: reg WINDOW *win; 10: reg int y, x; { 11: 12: # ifdef DEBUG 13: fprintf(outf, "MOVE to (%d, %d)\n", y, x); 14: # endif 15: if (x >= win->_maxx || y >= win->_maxy) 16: return ERR; 17: win->_curx = x; 18: win->_cury = y; 19: return OK; 20: }