home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
PROGRAM
/
AECUR100.ZIP
/
CONTRIB
/
CURSES
/
SRC
/
DRAWBOX.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-08
|
665b
|
29 lines
/*--------------------------------------------------------------------
*
* drawbox.c
*
* copyright (c) 1987,88,89,90 J. Alan Eldridge
*
* draws a box on win, with dimensions lines x cols, using v and h
* the box is drawn at the current cursor location
*
* v and h are interpreted as desribed in box.c
*
*--------------------------------------------------------------------
*/
#include "curses.h"
drawbox(win,lines,cols,v,h)
WINDOW *win;
{
WINDOW *bwin,*subwin();
bwin = subwin(win,lines,cols,win->orgy+win->cury,win->orgx+win->curx);
if (!bwin)
return ERR;
box(bwin,v,h);
delwin(bwin);
return OK;
}