1halfdelay(3XCURSES)     X/Open Curses Library Functions    halfdelay(3XCURSES)
2
3
4

NAME

6       halfdelay - enable/disable half-delay mode
7

SYNOPSIS

9       cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
10        -R  /usr/xpg4/lib  -lcurses  [ library... ]
11
12       c89 [ flag... ] file... -lcurses [ library... ]
13
14       #include <curses.h>
15
16       int halfdelay(int tenths);
17
18

DESCRIPTION

20       The  halfdelay()  function  is similar to cbreak(3XCURSES) in that when
21       set, characters typed by the user are immediately processed by the pro‐
22       gram.   The  difference is that ERR is returned if no input is received
23       after tenths tenths seconds.
24
25
26       The nocbreak(3XCURSES) function should  be  used  to  leave  half-delay
27       mode.
28

PARAMETERS

30       tenths    Is  the  number of tenths of seconds for which to block input
31                 (1 to 255).
32
33

RETURN VALUES

35       On success, the halfdelay() function returns OK. Otherwise, it  returns
36       ERR.
37

ERRORS

39       None.
40

ATTRIBUTES

42       See attributes(5) for descriptions of the following attributes:
43
44
45
46
47       ┌─────────────────────────────┬─────────────────────────────┐
48       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
49       ├─────────────────────────────┼─────────────────────────────┤
50       │Interface Stability          │Standard                     │
51       ├─────────────────────────────┼─────────────────────────────┤
52       │MT-Level                     │Unsafe                       │
53       └─────────────────────────────┴─────────────────────────────┘
54

SEE ALSO

56       cbreak(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)
57
58
59
60SunOS 5.11                        5 Jun 2002               halfdelay(3XCURSES)
Impressum