endwin(3cur)
NAME
endwin − restore initial terminal environment
SYNTAX
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- curses mode.
A program should always call endwin before exiting or escaping from curses mode temporarily. Call refresh or doupdate to resume after a temporary escape.
SEE ALSO
Subroutines