/*
 *
 */

#include <stdio.h>
#include <sys/types.h>
#include "curses.h"
#include "cwindows.h"
#include "bible.h"

main (argc, argv)
	int argc;
	char **argv;
{
	char	buffer[30];
	CWINDOW	*cw;
	
	COpen();
	CBackground();
	CSync();
	cw = CCreateWindow(rootcw, "test", 10, 20, 2, 2);
	wmove(cw->w, 6, 3);
	wprintw(cw->w, "Test window");
	CBoxWindow(cw);
	CMapWindow(cw);
	CSync();
	sleep(2);
	CPrompt(rootcw, 4, 3, "Enter filename: ", buffer, sizeof(buffer));
	sleep(5);
	CClose();
}

CBackground()
{
	int	i;
	for (i=0; i < 24; i++) 
		wprintw(rootcw->w, "foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofo\n");
}

struct _line {
	char	*str;		/* Contents of line */
	struct _line	*next;
	struct _line	*prev;
}
	

struct _verse_list {
	VERSE	*v;
	struct _line  	*line;
	int	ypos;		/* Starting position */
	bool	top;
	bool	bottom;
	struct _verse_list	*next, *prev;
}

struct _bible_display {
	CWINDOW	*cw;
	BOOK	*bk;
	int	width;		/* Width of window */
}	
