Back to index

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

Go to the source code of this file.

Functions

 slk_clear (void)

Function Documentation

slk_clear ( void  )

Definition at line 44 of file lib_slkclear.c.

{
    T((T_CALLED("slk_clear()")));

    if (SP == NULL || SP->_slk == NULL)
       returnCode(ERR);
    SP->_slk->hidden = TRUE;
    /* For simulated SLK's it's looks much more natural to
       inherit those attributes from the standard screen */
    SP->_slk->win->_nc_bkgd = stdscr->_nc_bkgd;
    SP->_slk->win->_attrs = stdscr->_attrs;
    if (SP->_slk->win == stdscr) {
       returnCode(OK);
    } else {
       werase(SP->_slk->win);
       returnCode(wrefresh(SP->_slk->win));
    }
}

Here is the call graph for this function: