4.3BSD beta release manual page
[unix-history] / usr / src / old / lib2648 / drawbox.c
CommitLineData
051b1e55
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[] = "@(#)drawbox.c 5.1 (Berkeley) %G%";
9#endif not lint
10
2abd1c3f
RC
11/*
12 * Draw a box around a window. The lower left corner of the box is at (r, c).
13 * Color is 1 for drawing a box, 0 for erasing.
14 * The box is nrow by ncol.
15 */
16
17#include "2648.h"
18
19drawbox(r, c, color, nrow, ncol)
20int r, c, color, nrow, ncol;
21{
22 if (color)
23 setset();
24 else
25 setclear();
26 move(c, r);
27 draw(c+ncol-1, r);
28 draw(c+ncol-1, r+nrow-1);
29 draw(c, r+nrow-1);
30 draw(c, r);
31}