date and time created 83/03/09 16:22:31 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 10 Mar 1983 08:22:31 +0000 (00:22 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Thu, 10 Mar 1983 08:22:31 +0000 (00:22 -0800)
SCCS-vsn: old/lib2648/draw.c 4.1

usr/src/old/lib2648/draw.c [new file with mode: 0644]

diff --git a/usr/src/old/lib2648/draw.c b/usr/src/old/lib2648/draw.c
new file mode 100644 (file)
index 0000000..89fced9
--- /dev/null
@@ -0,0 +1,21 @@
+/*     draw.c  4.1     83/03/09        */
+/*
+ * draw a line from the current place to (x,y).  Such lines are
+ * supposed to be horizontal, and are affected by the current mode.
+ */
+
+#include "2648.h"
+
+draw(x, y)
+{
+#ifdef TRACE
+       if (trace) {
+               fprintf(trace, "draw(%d,%d)\n", x, y);
+       }
+#endif
+       sync();
+       escseq(ESCP);
+       motion(x, y);
+       _supx = x;
+       _supy = y;
+}