[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions , Volume 2


halfdelay Subroutine

Purpose

Controls input character delay mode.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

int halfdelay(int tenths);

Description

The halfdelay subroutine sets the input mode for the current window to Half-Delay Mode and specifies tenths of seconds as the half-delay interval. The tenths argument must be in a range from 1 up to and including 255.

Flag


x Instructs wgetch to wait x tenths of a second for input before timing out.

Parameters


tenths  

Return Values

Upon successful completion, the halfdelay subroutine returns OK. Otherwise, it returns ERR.

Related Information

The cbreak (cbreak, nocbreak, noraw, or raw Subroutine) subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]