endwin(3XC)
NAME
endwin, isendwin − restore initial terminal environment
SYNOPSIS
#include <curses.h>
int endwin(void);
int isendwin(void);
DESCRIPTION
The endwin() function restores tty modes, resets the terminal, and moves the cursor to the lower left corner of the screen. This function should be called before exiting or escaping X/Open Curses temporarily. To resume X/Open Curses after a temporary escape, call refresh(3XC) or doupdate(3XC).
If the program interacts with multiple terminals, call endwin() for each terminal.
The isendiwin() function determines whether or not a screen has been refreshed.
RETURN VALUES
On success, the endwin() function returns OK. Otherwise, it returns ERR.
The isendwin() function returns TRUE if endwin() has been called without subsequent calls to refresh(). Otherwise, it returns FALSE.
ERRORS
None.
SEE ALSO
SunOS 5.6 — Last change: 1 Jun 1996