Annotation of researchv10no/ncurses/screen/touchwin.c, revision 1.1

1.1     ! root        1: # include      "curses.ext"
        !             2: /*     @(#) touchwin.c: 1.1 10/15/83   (1.3    8/18/82)        */
        !             3: 
        !             4: /*
        !             5:  * make it look like the whole window has been changed.
        !             6:  *
        !             7:  * 1/26/81 (Berkeley) @(#)touchwin.c   1.1
        !             8:  */
        !             9: touchwin(win)
        !            10: reg WINDOW     *win;
        !            11: {
        !            12:        reg int         y, maxy, maxx;
        !            13: 
        !            14: #ifdef DEBUG
        !            15:        if (outf) fprintf(outf, "touchwin(%x)\n", win);
        !            16: #endif
        !            17:        maxy = win->_maxy;
        !            18:        maxx = win->_maxx - 1;
        !            19:        for (y = 0; y < maxy; y++) {
        !            20:                win->_firstch[y] = 0;
        !            21:                win->_lastch[y] = maxx;
        !            22:        }
        !            23: }

unix.superglobalmegacorp.com

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