nodelay(3XC)
NAME
nodelay − set blocking or non-blocking read
SYNOPSIS
#include <curses.h>
int nodelay(WINDOW ∗win, bool bf);
ARGUMENTS
winIs a pointer to the window in which to enable non-blocking.
bfIs a Boolean expression.
DESCRIPTION
If enabled, (bf is TRUE), the nodelay() function causes getch(3XC) to return ERR if no input is ready. When disabled, getch() blocks until a key is pressed.
RETURN VALUES
On success, the nodelay() function returns OK. Otherwise, it returns ERR.
ERRORS
None.
SEE ALSO
getch(3XC), halfdelay(3XC), notimeout(3XC)
SunOS 5.6 — Last change: 1 Jun 1996