set_term(3X)
CURSES
NAME
set_term — switch between screens
SYNOPSIS
#include <curses.h>
SCREEN *set_term(SCREEN *new);
DESCRIPTION
The set_term() function switches between different screens. The new argument specifies the new current screen.
RETURN VALUE
Upon successful completion, set_term() returns a pointer to the previous screen. Otherwise, it returns a null pointer.
ERRORS
No errors are defined.
APPLICATION USAGE
This is the only function that manipulates SCREEN pointers; all other functions affect only the current screen.
SEE ALSO
Screens, Windows and Terminals in curs_intro, initscr(), <curses.h>.
CHANGE HISTORY
First released in X/Open Curses, Issue 2.
X/Open Curses, Issue 4
The entry is rewritten for clarity.
Hewlett-Packard Company — HP-UX Release 10.20: July 1996