HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)

h
halfdelay(3X) halfdelay(3X)
(ENHANCED CURSES)
NAME
halfdelay — control input character delay mode
SYNOPSIS
#include <curses.h>
int halfdelay(int tenths);
DESCRIPTION
The halfdelay() function sets the input mode for the current window to Half-Delay Mode and specifies
tenths tenths of seconds as the half-delay interval. The tenths argument must be in a range from 1 up to
and including 255.
RETURN VALUE
Upon successful completion,
halfdelay() returns OK. Otherwise, it returns ERR.
ERRORS
No errors are defined.
APPLICATION USAGE
The application can call nocbreak() to leave Half-Delay mode.
SEE ALSO
cbreak(3X), curses_intro(3X), see Input Mode, <curses.h>, X/Open System Interface Definitions, Issue 4,
Version 2 specification, Chapter 9, General Terminal Interface.
CHANGE HISTORY
First released in X/Open Curses, Issue 4.
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 3453