Annotation of 42BSD/usr.lib/lib2648/areaclear.c, revision 1.1.1.1

1.1       root        1: /*     areaclear.c     4.1     83/03/09        */
                      2: 
                      3: #include "2648.h"
                      4: 
                      5: areaclear(rmin, cmin, rmax, cmax)
                      6: int rmin, cmin, rmax, cmax;
                      7: {
                      8:        int osm;
                      9:        char mes[20];
                     10:        register int i;
                     11: 
                     12: #ifdef TRACE
                     13:        if (trace)
                     14:                fprintf(trace, "areaclear(%d, %d, %d, %d)\n", rmin, cmin, rmax, cmax);
                     15: #endif
                     16:        osm = _supsmode;
                     17:        setclear();
                     18:        sync();
                     19: #ifdef notdef
                     20:        /* old kludge because I couldn't get area fill to work */
                     21:        for (i=rmax; i>=rmin; i--) {
                     22:                move(cmin, i);
                     23:                draw(cmax, i);
                     24:        }
                     25: #endif
                     26:        sprintf(mes, "%da1b%d %d %d %de", (_video==NORMAL) ? 1 : 2, cmin, rmin, cmax, rmax);
                     27:        escseq(ESCM);
                     28:        outstr(mes);
                     29:        _supsmode = osm;
                     30: }

unix.superglobalmegacorp.com

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