111469Sralph /*
2*19786Sdist * Copyright (c) 1980 Regents of the University of California.
3*19786Sdist * All rights reserved. The Berkeley software License Agreement
4*19786Sdist * specifies the terms and conditions for redistribution.
5*19786Sdist */
6*19786Sdist
7*19786Sdist #ifndef lint
8*19786Sdist static char sccsid[] = "@(#)drawbox.c 5.1 (Berkeley) 04/30/85";
9*19786Sdist #endif not lint
10*19786Sdist
11*19786Sdist /*
1211469Sralph * Draw a box around a window. The lower left corner of the box is at (r, c).
1311469Sralph * Color is 1 for drawing a box, 0 for erasing.
1411469Sralph * The box is nrow by ncol.
1511469Sralph */
1611469Sralph
1711469Sralph #include "2648.h"
1811469Sralph
drawbox(r,c,color,nrow,ncol)1911469Sralph drawbox(r, c, color, nrow, ncol)
2011469Sralph int r, c, color, nrow, ncol;
2111469Sralph {
2211469Sralph if (color)
2311469Sralph setset();
2411469Sralph else
2511469Sralph setclear();
2611469Sralph move(c, r);
2711469Sralph draw(c+ncol-1, r);
2811469Sralph draw(c+ncol-1, r+nrow-1);
2911469Sralph draw(c, r+nrow-1);
3011469Sralph draw(c, r);
3111469Sralph }
32