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

halfdelay

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

The halfdelay routine is used to enable and disable the half-delay mode.

Syntax

   #include <curses.h>



   int halfdelay(int tenths);

Parameters

tenths

The number of tenths of seconds for which to block input (1 to 255).

Return Values

OK

Successful completion.

ERR

An error occurred.

Description

The halfdelay() routine is similar to cbreak() in that when set, characters typed by the user are immediately processed by the program. The difference is that ERR is returned if no input is received after tenths tenths seconds.

The nocbreak() routine should be used to leave the half-delay mode.

Implementation Considerations

UNIX System V implementation

See Also

cbreak(), wgetch()

Portability

UNIX System V

Feedback to webmaster