summaryrefslogtreecommitdiff
path: root/lib/libcurses/lib_move.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-11-26 04:02:03 +0000
commitbda33b7e716d56bf1a9ecccb7e2543889f9ab1d3 (patch)
tree7bc4bcdf70ecc1d045693a309e96b304e1b49c33 /lib/libcurses/lib_move.c
parentcd15e61d557c4704743905eae7b88ae927cf0394 (diff)
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO. Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_move.c')
-rw-r--r--lib/libcurses/lib_move.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libcurses/lib_move.c b/lib/libcurses/lib_move.c
index 547aa1762e3..3799bb57a8a 100644
--- a/lib/libcurses/lib_move.c
+++ b/lib/libcurses/lib_move.c
@@ -27,12 +27,14 @@
**
*/
-#include "curses.priv.h"
+#include <curses.priv.h>
+
+MODULE_ID("Id: lib_move.c,v 1.6 1997/02/02 00:00:47 tom Exp $")
int
wmove(WINDOW *win, int y, int x)
{
- T(("wmove(%p,%d,%d) called", win, y, x));
+ T((T_CALLED("wmove(%p,%d,%d)"), win, y, x));
if (x >= 0 && x <= win->_maxx &&
y >= 0 && y <= win->_maxy)
@@ -40,9 +42,9 @@ wmove(WINDOW *win, int y, int x)
win->_curx = (short)x;
win->_cury = (short)y;
- win->_flags &= ~_NEED_WRAP;
+ win->_flags &= ~_WRAPPED;
win->_flags |= _HASMOVED;
- return(OK);
+ returnCode(OK);
} else
- return(ERR);
+ returnCode(ERR);
}