Annotation of researchv10no/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:  * 4/16/81 (Berkeley) @(#)deleteln.c   1.3
        !             8:  */
        !             9: wdeleteln(win)
        !            10: reg WINDOW     *win; {
        !            11: 
        !            12:        reg char        *temp;
        !            13:        reg int         y;
        !            14:        reg char        *end;
        !            15: 
        !            16:        temp = win->_y[win->_cury];
        !            17:        for (y = win->_cury; y < win->_maxy; y++) {
        !            18:                win->_y[y] = win->_y[y+1];
        !            19:                win->_firstch[y] = 0;
        !            20:                win->_lastch[y] = win->_maxx - 1;
        !            21:        }
        !            22:        for (end = &temp[win->_maxx]; temp < end; )
        !            23:                *temp++ = ' ';
        !            24:        win->_y[win->_maxy-1] = temp - win->_maxx;
        !            25: }

unix.superglobalmegacorp.com

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