Back to index

tetex-bin  3.0
Functions
lib_restart.c File Reference
#include <curses.priv.h>
#include <term.h>

Go to the source code of this file.

Functions

 restartterm (NCURSES_CONST char *termp, int filenum, int *errret)

Function Documentation

restartterm ( NCURSES_CONST char *  termp,
int  filenum,
int errret 
)

Definition at line 53 of file lib_restart.c.

{
    int saveecho = SP->_echo;
    int savecbreak = SP->_cbreak;
    int saveraw = SP->_raw;
    int savenl = SP->_nl;

    T((T_CALLED("restartterm(%s,%d,%p)"), termp, filenum, errret));

    if (setupterm(termp, filenum, errret) != OK)
       returnCode(ERR);

    if (saveecho)
       echo();
    else
       noecho();

    if (savecbreak) {
       cbreak();
       noraw();
    } else if (saveraw) {
       nocbreak();
       raw();
    } else {
       nocbreak();
       noraw();
    }
    if (savenl)
       nl();
    else
       nonl();

    reset_prog_mode();

#if USE_SIZECHANGE
    _nc_update_screensize();
#endif

    returnCode(OK);
}

Here is the call graph for this function: