xref: /onnv-gate/usr/src/lib/libplot/t300s/common/con.h (revision 0:68f95e015346)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
23 /*	  All Rights Reserved  	*/
24 
25 
26 
27 /*
28  * Copyright (c) 1997 by Sun Microsystems, Inc.
29  * All rights reserved
30  */
31 
32 #pragma ident	"%Z%%M%	%I%	%E% SMI"
33 
34 #include <termio.h>
35 
36 /* gsi plotting output routines */
37 #define	DOUBLE 010
38 #define	ADDR 0100
39 #define	COM 060
40 #define	PENUP 04
41 #define	MAXX 070
42 #define	MAXY 07
43 #define	SPACES 7
44 #define	DOWN 012
45 #define	UP 013
46 #define	LEFT 010
47 #define	RIGHT 040
48 #define	BEL 007
49 #define	ESC 033
50 #define	ACK 006
51 #define	INPLOT 'P'
52 #define	CR 015
53 #define	FF 014
54 #define	VERTRESP 48
55 #define	HORZRESP 60.
56 #define	VERTRES 8.
57 #define	HORZRES 6.
58 
59 /*
60  * down is line feed, up is reverse line feed,
61  * left is backspace, right is space.  48 points per inch
62  * vertically, 60 horizontally
63  */
64 
65 extern int xnow, ynow;
66 extern int OUTF;
67 extern int xoffset, xscale, yscale;
68 extern struct termio ITTY, PTTY;
69 extern float botx, boty, obotx, oboty, scalex, scaley;
70 extern void movep(int, int);
71 extern void reset(void);
72 extern void spew(char);
73 extern void inplot(void);
74 extern void outplot(void);
75 extern float dist2(int, int, int, int);
76 extern int xsc(int);
77 extern int ysc(int);
78 extern int xconv(int);
79 extern int yconv(int);
80