date and time created 83/03/09 16:22:33 by ralph
[unix-history] / usr / src / old / lib2648 / drawbox.c
CommitLineData
2abd1c3f
RC
1/* drawbox.c 4.1 83/03/09 */
2/*
3 * Draw a box around a window. The lower left corner of the box is at (r, c).
4 * Color is 1 for drawing a box, 0 for erasing.
5 * The box is nrow by ncol.
6 */
7
8#include "2648.h"
9
10drawbox(r, c, color, nrow, ncol)
11int r, c, color, nrow, ncol;
12{
13 if (color)
14 setset();
15 else
16 setclear();
17 move(c, r);
18 draw(c+ncol-1, r);
19 draw(c+ncol-1, r+nrow-1);
20 draw(c, r+nrow-1);
21 draw(c, r);
22}