endwin(CURSES)
endwin --
suspend Curses session
Synopsis
cc [options] file -lcurses
#include <curses.h>
int endwin(void);
Description
The
endwin(CURSES)
function restores the terminal after Curses
activity by at least restoring the saved shell terminal mode, flushing
any output to the terminal and moving the cursor to the first column of the
last line of the screen. Refreshing a window resumes program mode. The
application must call
endwin(CURSES)
for each terminal being used before exiting. If
newterm(CURSES)
is called more than once for the same terminal, the first screen created
must be the last one for which
endwin(CURSES)
is called.
Return value
Upon successful completion,
endwin(CURSES)
returns OK.
Otherwise, it returns ERR.
Errors
No errors are defined.
Usage
The
endwin(CURSES)
function does not free storage associated with a screen, so
delscreen(CURSES)
should be called after
endwin(CURSES)
if a particular screen is no longer needed.
To leave Curses mode temporarily, portable applications should call
endwin(CURSES).
Subsequently, to return to Curses mode, they should call
doupdate(CURSES),
refresh(CURSES)
or
wrefresh(CURSES).
Standards Conformance
The Single UNIX Specification, Version 2; The Open Group.
References
delscreen(CURSES),
doupdate(CURSES),
initscr(CURSES),
isendwin(CURSES),
curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005