date and time created 85/01/02 20:29:43 by jak
[unix-history] / usr / src / lib / libplot / hp2648 / hp2648.h
CommitLineData
47a1797a
RC
1/* hp2648.h 4.1 83/11/10 */
2/*
3 * Displays plot files on an hp2648a graphics terminals. I have heard
4 * that all hp plotting devices use the same control sequences, so this
5 * might work for all hp devices capable of plotting.
6 */
7
8#include <stdio.h>
9
10#define TERMINAL "/dev/tty"
11
12#define ENQ 05
13#define ACK 06
14#define ESC 033
15#define GRAPHIC '*'
16#define MODE 'm'
17#define PLOT 'p'
18#define DISPLAY 'd'
19#define PENUP 'a'
20#define BINARY 'i'
21#define ASCII 'f'
22#define CR '\n'
23
24#define TRUE 1
25#define FALSE 0
26
27#define xsc(xi) ((int) (xi - lowx) * scalex + 0.5)
28#define ysc(yi) ((int) (yi - lowy) * scaley + 0.5)
29
30extern int shakehands;
31extern int currentx;
32extern int currenty;
33extern int buffcount;
34extern int fildes;
35extern float lowx;
36extern float lowy;
37extern float scalex;
38extern float scaley;
39extern struct sgttyb sarg;