BSD 4_3 release
[unix-history] / usr / src / usr.lib / libplot / gigi / open.c
CommitLineData
dca25f5a
DF
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
467dc69b 7#ifndef lint
95f51977 8static char sccsid[] = "@(#)open.c 5.1 (Berkeley) 5/7/85";
dca25f5a 9#endif not lint
467dc69b
RC
10
11/*
12 * Displays plot files on a gigi "graphics" terminal.
13 */
14
15#include <signal.h>
16#include "gigi.h"
17
18int currentx = 0;
19int currenty = 0;
20double lowx = 0.0;
21double lowy = 0.0;
22double scalex = 1.0;
23double scaley = 1.0;
24
25openpl()
26{
27 int closepl();
28
29 /* catch interupts */
30 signal(SIGINT, closepl);
31 currentx = 0;
32 currenty = 0;
33 /* enter grapics mode */
34 putchar(ESC); putchar('P'); putchar('p');
35
36 /* set some parameters */
37 printf("S(I0 T0 [0,0])");
38
39 space(0, 0, XMAX, YMAX);
40}