Sets the current terminal variable to the specified terminal.
Curses Library (libcurses.a)
#include <curses.h>
#include <term.h>
set_curterm( Newterm)
TERMINAL *Newterm;
The cur_term subroutine sets the cur_term variable to the terminal specified by the Newterm parameter. The cur_term subroutine is useful when the setupterm subroutine is called more than once. The set_curterm subroutine allows the programmer to toggle back and forth between terminals.
When information for a particular terminal is no longer required, remove it using the del_curterm subroutine.
Item | Description |
---|---|
Newterm | Points to a TERMINAL structure. This structure contains information about a specific terminal. |
To set the cur_term variable to point to the my_term terminal, use:
TERMINAL *newterm;
set_curterm(newterm);