Annotation of 43BSD/usr.lib/libplot/hp2648/hp2648.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:  *     @(#)hp2648.h    5.1 (Berkeley) 5/7/85
        !             7:  *
        !             8:  *
        !             9:  * Displays plot files on an hp2648a graphics terminals.  I have heard
        !            10:  * that all hp plotting devices use the same control sequences, so this
        !            11:  * might work for all hp devices capable of plotting.
        !            12:  */
        !            13: 
        !            14: #include <stdio.h>
        !            15: 
        !            16: #define TERMINAL "/dev/tty"
        !            17: 
        !            18: #define        ENQ     05
        !            19: #define ACK    06
        !            20: #define ESC    033
        !            21: #define GRAPHIC        '*'
        !            22: #define MODE   'm'
        !            23: #define PLOT   'p'
        !            24: #define DISPLAY 'd'
        !            25: #define PENUP  'a'
        !            26: #define BINARY 'i'
        !            27: #define ASCII  'f'
        !            28: #define CR     '\n'
        !            29: 
        !            30: #define TRUE  1
        !            31: #define FALSE 0
        !            32: 
        !            33: #define xsc(xi) ((int) (xi - lowx) * scalex + 0.5)
        !            34: #define ysc(yi) ((int) (yi - lowy) * scaley + 0.5)
        !            35: 
        !            36: extern int shakehands;
        !            37: extern int currentx;
        !            38: extern int currenty;
        !            39: extern int buffcount;
        !            40: extern int fildes;
        !            41: extern float lowx;
        !            42: extern float lowy;
        !            43: extern float scalex;
        !            44: extern float scaley;
        !            45: extern struct sgttyb sarg;

unix.superglobalmegacorp.com

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