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

NAME

6       endwin, isendwin - restore initial terminal environment
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 endwin(void);
17
18
19       bool isendwin(void);
20
21

DESCRIPTION

23       The endwin() function restores the terminal after Curses activity by at
24       least restoring the saved shell terminsl mode, flushing any  output  to
25       the  terminal,  and   moving the cursor to the first column of the last
26       line of the screen. Refreshing  a  window  resumes  program  mode.  The
27       application  must  call  endwin()  for  each terminal being used before
28       exiting. If newterm(3XCURSES) is called more than  once  for  the  same
29       terminal,  the first screen created must be the last one for which end‐
30       win() is called.
31
32
33       The isendiwin() function indicates whether or not  a  screen  has  been
34       refreshed since the last call to endwin().
35

RETURN VALUES

37       Upon  successful  completion,  the endwin() function returns OK. Other‐
38       wise, it returns ERR.
39
40
41       The isendwin() function returns TRUE if endwin() has been called  with‐
42       out any subsequent refresh. Otherwise, it returns FALSE.
43

ERRORS

45       Non errors are defined.
46

ATTRIBUTES

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

SEE ALSO

62       doupdate(3XCURSES),       libcurses(3XCURSES),       newterm(3XCURSES),
63       attributes(5), standards(5)
64
65
66
67SunOS 5.11                        5 Jun 2002                  endwin(3XCURSES)
Impressum