xref: /onnv-gate/usr/src/lib/libplot/t300/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  * Copyright (c) 1997 by Sun Microsystems, Inc.
28  * All rights reserved
29  */
30 
31 #pragma ident	"%Z%%M%	%I%	%E% SMI"
32 
33 #include <termio.h>
34 
35 /* gsi plotting output routines */
36 #define	DOWN 012
37 #define	UP 013
38 #define	LEFT 010
39 #define	RIGHT 040
40 #define	BEL 007
41 #define	ESC 033
42 #define	ACK 006
43 #define	CR 015
44 #define	FF 014
45 #define	VERTRESP 48
46 #define	HORZRESP 60.
47 #define	VERTRES 8.
48 #define	HORZRES 6.
49 /*
50  * down is line feed, up is reverse line feed,
51  * left is backspace, right is space.  48 points per inch
52  * vertically, 60 horizontally
53  */
54 
55 extern struct termio ITTY, PTTY;
56 extern float botx, boty, obotx, oboty, scalex, scaley;
57 extern int xscale, xoffset, yscale;
58 extern int OUTF;
59 extern void movep(short, short);
60 extern void spew(char);
61 extern void inplot(void);
62 extern void outplot(void);
63 extern void reset(void);
64 extern float dist2(int, int, int, int);
65 extern int xsc(short);
66 extern int ysc(short);
67 extern short xconv(short);
68 extern short yconv(short);
69 extern short xnow, ynow;
70