Annotation of 40BSD/lib/libcurses/clear.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

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