1move(3XCURSES) X/Open Curses Library Functions move(3XCURSES)
2
3
4
6 move, wmove - move cursor in window
7
9 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
10 -R /usr/xpg4/lib -lcurses [ library... ]
11
12 c89 [ flag... ] file... -lcurses [ library... ]
13
14 #include <curses.h>
15
16 int move(int y, int x);
17
18
19 int wmove(WINDOW *win, int y, int x);
20
21
23 y Is the y (row) coordinate of the position of the cursor in the
24 window.
25
26
27 x Is the x (column) coordinate of the position of the cursor in
28 the window.
29
30
31 win Is a pointer to the window in which the cursor is to be written.
32
33
35 The move() function moves the logical cursor (for stdscr) to the posi‐
36 tion specified by y (row) and x (column), where the upper left corner
37 of the window is row 0, column 0. The wmove() function performs the
38 same action, but moves the cursor in the window specified by win. The
39 physical cursor will not move until after a call to refresh(3XCURSES)
40 or doupdate(3XCURSES).
41
43 On success, these functions return OK. Otherwise, they return ERR.
44
46 None.
47
49 See attributes(5) for descriptions of the following attributes:
50
51
52
53
54 ┌─────────────────────────────┬─────────────────────────────┐
55 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │Interface Stability │Standard │
58 ├─────────────────────────────┼─────────────────────────────┤
59 │MT-Level │Unsafe │
60 └─────────────────────────────┴─────────────────────────────┘
61
63 doupdate(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)
64
65
66
67SunOS 5.11 5 Jun 2002 move(3XCURSES)