1mvscanw(3XCURSES) X/Open Curses Library Functions mvscanw(3XCURSES)
2
3
4
6 mvscanw, mvwscanw, scanw, wscanw - convert formatted input from a win‐
7 dow
8
10 cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib \
11 -R /usr/xpg4/lib -lcurses [ library... ]
12
13 c89 [ flag... ] file... -lcurses [ library... ]
14
15 #include <curses.h>
16
17 int mvscanw(int y, int x, char *fmt, ...);
18
19
20 int mvwscanw(WINDOW *win, int y, int x, char *fmt, ...);
21
22
23 int scanw(char *fmt, ...);
24
25
26 int wscanw(WINDOW *win, char *fmt, ...);
27
28
30 y Is the y (row) coordinate of the position of the character to be
31 read.
32
33
34 x Is the x (column) coordinate of the position of the character to
35 be read.
36
37
38 fmt Is a scanf() format string.
39
40
41 win Is a pointer to the window in which the character is to be read.
42
43
45 These functions are similar to scanf(3C). Their effect is as though
46 mvwgetstr(3XCURSES) were called to get a multi-byte character string
47 from the current or specified window at the current or specified cursor
48 position, and then sscanf() were used to interpret and convert that
49 string.
50
52 Upon successful completion, these functions return OK. Otherwise, they
53 return ERR.
54
56 No errors are defined.
57
59 See attributes(5) for descriptions of the following attributes:
60
61
62
63
64 ┌─────────────────────────────┬─────────────────────────────┐
65 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │Interface Stability │Standard │
68 ├─────────────────────────────┼─────────────────────────────┤
69 │MT-Level │Unsafe │
70 └─────────────────────────────┴─────────────────────────────┘
71
73 getnstr(3XCURSES), libcurses(3XCURSES), printw(3XCURSES), scanf(3C),
74 wcstombs(3C), attributes(5), standards(5)
75
76
77
78SunOS 5.11 5 Jun 2002 mvscanw(3XCURSES)