HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 4 CURSES

nodelay

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The nodelay routine is used to set blocking or non-blocking read.

Syntax

   #include <curses.h>



   int nodelay(WINDOW *win, bool bf);

Parameters

bf

A Boolean expression.

win

A pointer to the window in which to enable non-blocking.

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

If enabled (bf is TRUE), nodelay() causes getch() to return ERR if no input is ready. When disabled, getch() blocks until a key is pressed.

NOTE: The nodelay() routine is a macro.

Implementation Considerations

Identical to XPG/3

See Also

wgetch(), wtimeout()

Portability

HP-UX, UNIX System V, XPG/3

Feedback to webmaster