endwin(3cur)endwin(3cur)Nameendwin - restore initial terminal environment
Syntax
int endwin()Description
This routine restores tty modes, moves the cursor to the lower left
corner of the screen and resets the terminal to the last non-mode.
A program should always call before exiting or escaping from mode tem‐
porarily. Call or to resume after a temporary escape.
Return Values
The function returns OK on success and ERR on error.
See Alsodoupdate(3cur), refresh(3cur)endwin(3cur)