1 /*- 2 * Copyright (c) 1983 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.proprietary.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)line.c 4.2 (Berkeley) 04/22/91"; 10 #endif /* not lint */ 11 12 extern vti; 13 extern xnow,ynow; 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 } 23 cont(x0,y0){ 24 line(xnow,ynow,xsc(x0),ysc(y0)); 25 return; 26 } 27