Annotation of 43BSDReno/lib/libplot/bitgraph/bg.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1980 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  *
        !             6:  *     @(#)bg.h        5.1 (Berkeley) 4/30/85
        !             7:  */
        !             8: 
        !             9: /*
        !            10:  * Displays plot files on a bbn bitgraph terminal.
        !            11:  */
        !            12: 
        !            13: #include <stdio.h>
        !            14: #include <math.h>
        !            15: 
        !            16: #define ESC    033
        !            17: #define PI     3.141592659
        !            18: 
        !            19: /* The graphics address range is 0..XMAX, 0..YMAX. */
        !            20: #define XMAX   768
        !            21: #define YMAX   1024
        !            22: #define scaleX(xi)     ((int) ((xi - lowx)*scale +0.5))
        !            23: #define scaleY(yi)     ((int) ((yi - lowy)*scale +0.5))
        !            24: 
        !            25: extern int currentx;
        !            26: extern int currenty;
        !            27: extern double lowx;
        !            28: extern double lowy;
        !            29: extern double scale;

unix.superglobalmegacorp.com

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