Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
X/Open Curses Library Functionsnodelay(3XCURSES)


NAME

 nodelay - set blocking or non-blocking read

SYNOPSIS

 
#include <curses.h>
int nodelay(WINDOW *win, bool bf);

PARAMETERS

 
win
Is a pointer to the window in which to enable non-blocking.
bf
Is a Boolean expression.

DESCRIPTION

 

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.

RETURN VALUES

 

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

ERRORS

 

None.

SEE ALSO

 

getch(3XCURSES), halfdelay(3XCURSES), notimeout(3XCURSES)


SunOS 5.9Go To TopLast Changed 1 Jun 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.