Annotation of coherent/g/usr/lib/ncurses/lib_set_term.c, revision 1.1

1.1     ! root        1: /*********************************************************************
        !             2: *                         COPYRIGHT NOTICE                           *
        !             3: **********************************************************************
        !             4: *        This software is copyright (C) 1982 by Pavel Curtis         *
        !             5: *                                                                    *
        !             6: *        Permission is granted to reproduce and distribute           *
        !             7: *        this file by any means so long as no fee is charged         *
        !             8: *        above a nominal handling fee and so long as this            *
        !             9: *        notice is always included in the copies.                    *
        !            10: *                                                                    *
        !            11: *        Other rights are reserved except as explicitly granted      *
        !            12: *        by written permission of the author.                        *
        !            13: *                Pavel Curtis                                        *
        !            14: *                Computer Science Dept.                              *
        !            15: *                405 Upson Hall                                      *
        !            16: *                Cornell University                                  *
        !            17: *                Ithaca, NY 14853                                    *
        !            18: *                                                                    *
        !            19: *                Ph- (607) 256-4934                                  *
        !            20: *                                                                    *
        !            21: *                Pavel.Cornell@Udel-Relay   (ARPAnet)                *
        !            22: *                decvax!cornell!pavel       (UUCPnet)                *
        !            23: *********************************************************************/
        !            24: 
        !            25: /*
        !            26: **     lib_set_term.c
        !            27: **
        !            28: **     The routine set_term().
        !            29: **
        !            30: ** $Log:       RCS/lib_set_term.v $
        !            31:  * Revision 2.2  92/11/08  23:50:10  munk
        !            32:  * Set up alternate character set map and
        !            33:  * other forgotten stuff
        !            34:  * 
        !            35:  * Revision 2.1  82/10/25  14:49:06  pavel
        !            36:  * Added Copyright Notice
        !            37:  * 
        !            38:  * Revision 2.0  82/10/25  13:49:42  pavel
        !            39:  * Beta-one Test Release
        !            40:  * 
        !            41: **
        !            42: */
        !            43: 
        !            44: #ifdef RCSHDR
        !            45: static char RCSid[] =
        !            46:        "$Header:   RCS/lib_set_term.v  Revision 2.1  82/10/25  14:49:06  pavel  Exp$";
        !            47: #endif
        !            48: 
        !            49: #include "curses.h"
        !            50: #include "curses.priv.h"
        !            51: #include "term.h"
        !            52: 
        !            53: 
        !            54: struct screen *
        !            55: set_term(screen)
        !            56: struct screen *screen;
        !            57: {
        !            58:        char            *strncpy();
        !            59:        struct screen   *oldSP;
        !            60: 
        !            61: #ifdef TRACE
        !            62:        if (_tracing)
        !            63:            _tracef("set_term(%o) called", screen);
        !            64: #endif
        !            65: 
        !            66:        oldSP = SP;
        !            67:        SP = screen;
        !            68: 
        !            69:        cur_term = SP->_term;
        !            70:        curscr   = SP->_curscr;
        !            71:        newscr   = SP->_newscr;
        !            72: 
        !            73:        strncpy(ttytype, cur_term->term_names, NAMESIZE - 1);
        !            74:        ttytype[NAMESIZE - 1] = '\0';
        !            75: 
        !            76:        LINES = lines;
        !            77:        COLS = columns;
        !            78: 
        !            79:        setup_acs();
        !            80: 
        !            81:        return(oldSP);
        !            82: }

unix.superglobalmegacorp.com

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