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

NAME

6       ungetch, unget_wch - push character back onto the input queue
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 ungetch(int ch);
17
18
19       int unget_wch(const wchar_t wch);
20
21

PARAMETERS

23       ch     Is  the  single byte character to be put back in the input queue
24              for the  next call to getch(3XCURSES).
25
26
27       wch    Is the wide character to be put back in the input queue for  the
28              next call  to get_wch(3XCURSES).
29
30

DESCRIPTION

32       The  ungetch()  function  pushes ch back onto the input queue until the
33       next  call to getch().
34
35
36       The unget_wch() function is similar to ungetch() except that ch can  be
37       of type wchar_t.
38

RETURN VALUES

40       On success, these functions return OK. Otherwise, they return ERR.
41

ERRORS

43       None.
44

ATTRIBUTES

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

SEE ALSO

60       get_wch(3XCURSES), getch(3XCURSES), libcurses(3XCURSES), attributes(5),
61       standards(5)
62
63
64
65SunOS 5.11                        5 Jun 2002                 ungetch(3XCURSES)
Impressum