Back to index

tetex-bin  3.0
Functions
lib_cur_term.c File Reference
#include <curses.priv.h>
#include <term_entry.h>
#include <termcap.h>

Go to the source code of this file.

Functions

 NCURSES_EXPORT_VAR (TERMINAL *)
 del_curterm (TERMINAL *termp)

Function Documentation

del_curterm ( TERMINAL *  termp)

Definition at line 63 of file lib_cur_term.c.

{
    T((T_CALLED("del_curterm(%p)"), termp));

    if (termp != 0) {
       _nc_free_termtype(&(termp->type));
       FreeIfNeeded(termp->_termname);
       free(termp);
       if (termp == cur_term)
           cur_term = 0;
       returnCode(OK);
    }
    returnCode(ERR);
}

Here is the call graph for this function:

Here is the caller graph for this function:

NCURSES_EXPORT_VAR ( TERMINAL *  )

Definition at line 45 of file lib_cur_term.c.

{
    TERMINAL *oldterm = cur_term;

    T((T_CALLED("set_curterm(%p)"), termp));

    if ((cur_term = termp) != 0) {
       ospeed = _nc_ospeed(cur_term->_baudrate);
       PC = (pad_char != NULL) ? pad_char[0] : 0;
    }
    T((T_RETURN("%p"), oldterm));
    return (oldterm);
}

Here is the call graph for this function: