Annotation of researchv10dc/ncurses/screen/delch.c, revision 1.1.1.1

1.1       root        1: # include      "curses.ext"
                      2: /*     @(#) delch.c: 1.1 10/15/83      (1.2    4/7/82) */
                      3: 
                      4: /*
                      5:  *     This routine performs an delete-char on the line, leaving
                      6:  * (_cury,_curx) unchanged.
                      7:  *
                      8:  * @(#)delch.c 1.1 (Berkeley) 4/17/81
                      9:  */
                     10: wdelch(win)
                     11: reg WINDOW     *win; {
                     12: 
                     13:        reg chtype      *temp1, *temp2;
                     14:        reg chtype      *end;
                     15: 
                     16:        end = &win->_y[win->_cury][win->_maxx - 1];
                     17:        temp2 = &win->_y[win->_cury][win->_curx + 1];
                     18:        temp1 = temp2 - 1;
                     19:        while (temp1 < end)
                     20:                *temp1++ = *temp2++;
                     21:        *temp1 = ' ';
                     22:        win->_lastch[win->_cury] = win->_maxx - 1;
                     23:        if (win->_firstch[win->_cury] == _NOCHANGE ||
                     24:            win->_firstch[win->_cury] > win->_curx)
                     25:                win->_firstch[win->_cury] = win->_curx;
                     26:        return OK;
                     27: }

unix.superglobalmegacorp.com

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