|
|
1.1 ! root 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: ! 7: #ifndef lint ! 8: static char sccsid[] = "@(#)draw.c 5.1 (Berkeley) 4/26/85"; ! 9: #endif not lint ! 10: ! 11: /* ! 12: * draw a line from the current place to (x,y). Such lines are ! 13: * supposed to be horizontal, and are affected by the current mode. ! 14: */ ! 15: ! 16: #include "2648.h" ! 17: ! 18: draw(x, y) ! 19: { ! 20: #ifdef TRACE ! 21: if (trace) { ! 22: fprintf(trace, "draw(%d,%d)\n", x, y); ! 23: } ! 24: #endif ! 25: sync(); ! 26: escseq(ESCP); ! 27: motion(x, y); ! 28: _supx = x; ! 29: _supy = y; ! 30: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.