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

1.1     ! root        1: /*     @(#) _window.c: 1.1 10/15/83    (1.21   2/11/83)        */
        !             2: 
        !             3: #include "curses.ext"
        !             4: 
        !             5: /*
        !             6:  * Set the desired window to the box with the indicated boundaries.
        !             7:  * All scrolling should only affect the area inside the window.
        !             8:  * We currently ignore the last 2 args since we're only using this
        !             9:  * for scrolling and want to use the feature on vt100's as well as
        !            10:  * on concept 100's.  left and right are for future expansion someday.
        !            11:  *
        !            12:  * Note that we currently assume cursor addressing within the window
        !            13:  * is relative to the screen, not the window.  This will have to be
        !            14:  * generalized if concept windows are to be used.
        !            15:  */
        !            16: /* ARGSUSED */
        !            17: _window(top, bottom, left, right)
        !            18: int top, bottom, left, right;
        !            19: {
        !            20: #ifdef DEBUG
        !            21:        if(outf) fprintf(outf, "_window old top=%d, bot %d; new top=%d, bot %d\n",
        !            22:                SP->des_top_mgn, SP->des_bot_mgn, top, bottom);
        !            23: #endif
        !            24:        if (change_scroll_region || set_window) {
        !            25:                SP->des_top_mgn = top;
        !            26:                SP->des_bot_mgn = bottom;
        !            27:        }
        !            28: #ifdef DEBUG
        !            29:        else
        !            30:                if(outf) fprintf(outf, "window setting ignored\n");
        !            31: #endif
        !            32: }

unix.superglobalmegacorp.com

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