1*48526Sbostic /*- 2*48526Sbostic * Copyright (c) 1983 The Regents of the University of California. 3*48526Sbostic * All rights reserved. 4*48526Sbostic * 5*48526Sbostic * %sccs.include.proprietary.c% 6*48526Sbostic */ 7*48526Sbostic 813385Ssam #ifndef lint 9*48526Sbostic static char sccsid[] = "@(#)line.c 4.2 (Berkeley) 04/22/91"; 10*48526Sbostic #endif /* not lint */ 1113385Ssam 1213385Ssam extern vti; 1313385Ssam extern xnow,ynow; 1413385Ssam line(x0,y0,x1,y1){ 1513385Ssam struct{char x,c; int x0,y0,x1,y1;} p; 1613385Ssam p.c = 3; 1713385Ssam p.x0 = xsc(x0); 1813385Ssam p.y0 = ysc(y0); 1913385Ssam p.x1 = xnow = xsc(x1); 2013385Ssam p.y1 = ynow = ysc(y1); 2113385Ssam write(vti,&p.c,9); 2213385Ssam } 2313385Ssam cont(x0,y0){ 2413385Ssam line(xnow,ynow,xsc(x0),ysc(y0)); 2513385Ssam return; 2613385Ssam } 27