add vdioctl
[unix-history] / usr / src / old / lib2648 / draw.c
CommitLineData
61d96e53
DF
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
8static char sccsid[] = "@(#)draw.c 5.1 (Berkeley) %G%";
9#endif not lint
10
77244e72
RC
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
18draw(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}