|
X/Open Curses Library Functions | nodelay(3XCURSES) |
| nodelay - set blocking or non-blocking read |
SYNOPSIS
|
#include <curses.h> int nodelay(WINDOW *win, bool bf); |
|
-
win
- Is a pointer to the window in which to enable non-blocking.
-
bf
- Is a Boolean expression.
|
|
If enabled, (bf is TRUE), the nodelay() function causes getch(3XCURSES) to return ERR if no input is ready. When disabled, getch() blocks until a key is pressed.
|
|
On success, the nodelay() function returns OK. Otherwise, it returns ERR.
|
| |