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

1.1     ! root        1: /*     @(#) endwin.c: 1.1 10/15/83     (1.8    2/9/83) */
        !             2: 
        !             3: #include       "curses.ext"
        !             4: 
        !             5: /*
        !             6:  * Clean things up before exiting.
        !             7:  * endwin is TRUE if we have called endwin - this avoids calling it twice.
        !             8:  */
        !             9: 
        !            10: extern int     _endwin;
        !            11: 
        !            12: extern int     _c_clean();
        !            13: extern int     _fixdelay();
        !            14: extern int     _outch();
        !            15: extern int     _pos();
        !            16: extern int     doupdate();
        !            17: extern int     reset_shell_mode();
        !            18: extern int     tputs();
        !            19: 
        !            20: int
        !            21: endwin()
        !            22: {
        !            23:        int saveci = SP->check_input;
        !            24: 
        !            25:        if (_endwin)
        !            26:                return;
        !            27: 
        !            28:        /* Flush out any output not output due to typeahead */
        !            29:        SP->check_input = 9999;
        !            30:        doupdate();
        !            31:        SP->check_input = saveci;       /* in case of another initscr */
        !            32: 
        !            33:        _fixdelay(SP->fl_nodelay, FALSE);
        !            34:        if (stdscr->_use_meta)
        !            35:                tputs(meta_off, 1, _outch);
        !            36:        _pos(lines-1, 0);
        !            37:        _c_clean();
        !            38:        _endwin = TRUE;
        !            39:        reset_shell_mode();
        !            40:        fflush(stdout);
        !            41: }

unix.superglobalmegacorp.com

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