1nodelay(3XCURSES)       X/Open Curses Library Functions      nodelay(3XCURSES)
2
3
4

NAME

6       nodelay - set blocking or non-blocking read
7

SYNOPSIS

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 nodelay(WINDOW *win, bool bf);
17
18

PARAMETERS

20       win    Is a pointer to the window in which to enable non-blocking.
21
22
23       bf     Is a Boolean expression.
24
25

DESCRIPTION

27       If enabled, (bf is TRUE), the nodelay() function causes getch(3XCURSES)
28       to return ERR if no input is  ready.   When  disabled,  getch()  blocks
29       until a key is pressed.
30

RETURN VALUES

32       On  success,  the  nodelay() function returns OK. Otherwise, it returns
33       ERR.
34

ERRORS

36       None.
37

ATTRIBUTES

39       See attributes(5) for descriptions of the following attributes:
40
41
42
43
44       ┌─────────────────────────────┬─────────────────────────────┐
45       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
46       ├─────────────────────────────┼─────────────────────────────┤
47       │Interface Stability          │Standard                     │
48       ├─────────────────────────────┼─────────────────────────────┤
49       │MT-Level                     │Unsafe                       │
50       └─────────────────────────────┴─────────────────────────────┘
51

SEE ALSO

53       getch(3XCURSES),  halfdelay(3XCURSES),   libcurses(3XCURSES),   notime‐
54       out(3XCURSES), attributes(5), standards(5)
55
56
57
58SunOS 5.11                        5 Jun 2002                 nodelay(3XCURSES)
Impressum