1 /*-
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.proprietary.c%
6 */
7
8 #ifndef lint
9 static char sccsid[] = "@(#)line.c 8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11
12 extern vti;
13 extern xnow,ynow;
line(x0,y0,x1,y1)14 line(x0,y0,x1,y1){
15 struct{char x,c; int x0,y0,x1,y1;} p;
16 p.c = 3;
17 p.x0 = xsc(x0);
18 p.y0 = ysc(y0);
19 p.x1 = xnow = xsc(x1);
20 p.y1 = ynow = ysc(y1);
21 write(vti,&p.c,9);
22 }
cont(x0,y0)23 cont(x0,y0){
24 line(xnow,ynow,xsc(x0),ysc(y0));
25 return;
26 }
27