#
# @(#)box	3.1 (SVVS) 12/1/86
#
# cursor motion: box
#
abstract("cursor - box");
start
	testing("draw a box around stdscr.");
	start
		box(stdscr, '|', '-');
		refresh();
		expect();
	finis
	clear();
	refresh();

	testing("draw a box around several small windows.");
	start
	for ( i = 0 ; i < 3 ; i++ )
	{
		win1 = newwin(LINES / 2, COLS / 2, i * 5, i * 5);
		wbarber(win1, LINES / 2, COLS / 2, 'a');
		wrefresh(win1);
		box(win1, '|', '-');
		wrefresh(win1);
		expect();
	}
	finis
	touchwin(stdscr);
	clear();
	refresh();

	testing("draw a box around several small windows");
	testing("that are in the various corners of the screen.");
	start
	h = 0;
	w = 0;
	for (i = 0; i < 4; i++)
	{
		win = newwin(LINES / 2, COLS / 2, h, w);
		wbarber(win, LINES / 2, COLS / 2, 'a');
		wrefresh(win);
		box(win, '|', '-');
		wrefresh(win);
		expect();
		delwin(win);
		if (i == 0)
			w = (COLS / 2) - 1;
		else if (i == 1)
			h = (LINES / 2) - 1;
		else if (i == 2)
			w = 0;
	}
	finis
finis
