Annotation of 42BSD/usr.lib/libcurses/clear.c, revision 1.1

1.1     ! root        1: # include      "curses.ext"
        !             2: 
        !             3: /*
        !             4:  *     This routine clears the window.
        !             5:  *
        !             6:  * 1/26/81 (Berkeley) @(#)clear.c      1.1
        !             7:  */
        !             8: wclear(win)
        !             9: reg WINDOW     *win; {
        !            10: 
        !            11:        if (win == curscr) {
        !            12: # ifdef DEBUG
        !            13:                fprintf(outf,"WCLEAR: win == curscr\n");
        !            14:                fprintf(outf,"WCLEAR: curscr = %d\n",curscr);
        !            15:                fprintf(outf,"WCLEAR: stdscr = %d\n",stdscr);
        !            16: # endif
        !            17:                clear();
        !            18:                return refresh();
        !            19:        }
        !            20:        werase(win);
        !            21:        win->_clear = TRUE;
        !            22:        return OK;
        !            23: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.