mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 04:12:51 +00:00
34 lines
593 B
C
34 lines
593 B
C
|
|
/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
|
|
* details. If they are missing then this copy is in violation of *
|
|
* the copyright conditions. */
|
|
|
|
/*
|
|
** lib_move.c
|
|
**
|
|
** The routine wmove().
|
|
**
|
|
*/
|
|
|
|
#include "curses.priv.h"
|
|
|
|
int
|
|
wmove(WINDOW *win, int y, int x)
|
|
{
|
|
#ifdef TRACE
|
|
if (_tracing)
|
|
_tracef("wmove(%x,%d,%d) called", win, y, x);
|
|
#endif
|
|
|
|
if (x >= 0 && x <= win->_maxx &&
|
|
y >= 0 && y <= win->_maxy)
|
|
{
|
|
win->_curx = x;
|
|
win->_cury = y;
|
|
|
|
win->_flags |= _HASMOVED;
|
|
return(OK);
|
|
} else
|
|
return(ERR);
|
|
}
|