1*22672Sdist /* 2*22672Sdist * Copyright (c) 1980 Regents of the University of California. 3*22672Sdist * All rights reserved. The Berkeley software License Agreement 4*22672Sdist * specifies the terms and conditions for redistribution. 5*22672Sdist */ 6*22672Sdist 7*22672Sdist #ifndef lint 8*22672Sdist static char sccsid[] = "@(#)move.c 5.1 (Berkeley) 06/07/85"; 9*22672Sdist #endif not lint 10*22672Sdist 1111739Sarnold # include "curses.ext" 1211739Sarnold 1311739Sarnold /* 1411739Sarnold * This routine moves the cursor to the given point 1511739Sarnold * 1611739Sarnold */ 1711739Sarnold wmove(win, y, x) 1811739Sarnold reg WINDOW *win; 1911739Sarnold reg int y, x; { 2011739Sarnold 2111739Sarnold # ifdef DEBUG 2211739Sarnold fprintf(outf, "MOVE to (%d, %d)\n", y, x); 2311739Sarnold # endif 2411739Sarnold if (x >= win->_maxx || y >= win->_maxy) 2511739Sarnold return ERR; 2611739Sarnold win->_curx = x; 2711739Sarnold win->_cury = y; 2811739Sarnold return OK; 2911739Sarnold } 30