Annotation of 40BSD/lib/libcurses/deleteln.c, revision 1.1

1.1     ! root        1: # include      "curses.ext"
        !             2: 
        !             3: /*
        !             4:  *     This routine deletes a line from the screen.  It leaves
        !             5:  * (_cury,_curx) unchanged.
        !             6:  */
        !             7: wdeleteln(win)
        !             8: reg WINDOW     *win; {
        !             9: 
        !            10:        reg char        *temp;
        !            11:        reg int         y;
        !            12:        reg char        *end;
        !            13: 
        !            14:        temp = win->_y[win->_cury];
        !            15:        for (y = win->_cury; y < win->_maxy; y++) {
        !            16:                win->_y[y] = win->_y[y+1];
        !            17:                win->_firstch[y] = 0;
        !            18:                win->_lastch[y] = win->_maxx - 1;
        !            19:        }
        !            20:        for (end = &temp[win->_maxx]; temp < end; )
        !            21:                *temp++ = ' ';
        !            22:        win->_y[win->_maxy-1] = temp;
        !            23:        return OK;
        !            24: }

unix.superglobalmegacorp.com

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