#include <curses.h>
The set_term() function switches to the terminal specified by new and returns a screen reference to the previous terminal. Calls to subsequent X/Open Curses functions affect the new terminal.
On success, the set_term() function returns a pointer to the previous screen. Otherwise, it returns a null pointer.
None.