2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License, Version 1.0 only
2N/A * (the "License"). You may not use this file except in compliance
2N/A * with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
2N/A/* All Rights Reserved */
2N/A
2N/A
2N/A/*
2N/A * Copyright (c) 1997 by Sun Microsystems, Inc.
2N/A * All rights reserved
2N/A */
2N/A
2N/A#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.2 */
2N/A
2N/A#include <termio.h>
2N/A
2N/A/* gsi plotting output routines */
2N/A#define DOWN 012
2N/A#define UP 013
2N/A#define LEFT 010
2N/A#define RIGHT 040
2N/A#define BEL 007
2N/A#define ESC 033
2N/A#define ACK 006
2N/A#define PLOTIN 063
2N/A#define PLOTOUT 064
2N/A#define CR 015
2N/A#define FF 014
2N/A#define VERTRESP 48
2N/A#define HORZRESP 60.
2N/A#define VERTRES 8.
2N/A#define HORZRES 6.
2N/A
2N/A/* vert and horiz spacing */
2N/A#define RS 036
2N/A#define US 037
2N/A#define HT 011
2N/A
2N/A/*
2N/A * down is line feed, up is reverse line feed,
2N/A * left is backspace, right is space. 48 points per inch
2N/A * vertically, 60 horizontally
2N/A*/
2N/A
2N/Aextern int xnow, ynow;
2N/Aextern struct termio ITTY, PTTY;
2N/Aextern int OUTF;
2N/Aextern int xscale, xoffset, yscale;
2N/Aextern float botx, boty, obotx, oboty, scalex, scaley;
2N/Aextern void movep(int, int);
2N/Aextern void spew(char);
2N/Aextern int xconv(int);
2N/Aextern int yconv(int);
2N/Aextern void inplot(void);
2N/Aextern void outplot(void);
2N/Aextern int xsc(int);
2N/Aextern int ysc(int);
2N/Aextern void reset(void);
2N/Aextern float dist2(int, int, int, int);