Sets the current terminal variable to the specified terminal.
#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.
Note: The cur_term subroutine is a low-level subroutine. You should use this subroutine only if your application must deal directly with the terminfo database to handle certain terminal capabilities. For example, use this subroutine if your application programs function keys.
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);
This subroutine is part of Base Operating System (BOS) Runtime.
The setupterm subroutine.
Curses Overview for Programming and List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Understanding Terminals with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.