curs_move(3X) curs_move(3X)
curs_move: move, wmove - move curses window cursor
#include <curses.h>
int move(int y, int x);
int wmove(WINDOW *win, int y, int x);
With these routines, the cursor associated with the window is moved to
line y and column x. This routine does not move the physical cursor of
the terminal until refresh is called. The position specified is relative
to the upper left-hand corner of the window, which is (0,0).
These routines return the integer ERR upon failure and an integer value
other than ERR upon successful completion.
The header file <curses.h> automatically includes the header files
<stdio.h> and <unctrl.h>.
Note that move may be a macro.
curses(3X), curs_refresh(3X)
move(3G) move(3G)
move, movei, moves, move2, move2i, move2s - moves the current graphics
position to a specified point
void move(Coord x, Coord y, Coord z)
void movei(Icoord x, Icoord y, Icoord z)
void moves(Scoord x, Scoord y, Scoord z)
void move2(Coord x, Coord y)
void move2i(Icoord x, Icoord y)
void move2s(Scoord x, Scoord y)
All of the above routines are functionally the same. They differ only in
the type declarations of their parameters and in whether they assume a
three- or two-dimensional space.
x expects the new x coordinate for the current graphics position.
y expects the new y coordinate for the current graphics position.
z expects the new z coordinate for the current graphics position (when
applicable).
move changes (without drawing) the current graphics position to the point
specified by x, y, and z. The graphics position is the point from which
the next drawing routine will start drawing.
move2(x, y) is equivalent to move(x, y, 0.0).
bgnline, draw, endline, v, getgpos
move should not be used in new development. Rather, lines should be
drawn using the high-performance v commands, surrounded by calls to
bgnline and endline.
PPPPaaaaggggeeee 1111 [ Back ]
|