Example #1
0
void
WikilibThread::run()
{
	wikilib_init();
	guilib_init();
	wikilib_run();
}
Example #2
0
void kmf_interface_init(void)
{
    guilib_init(880, 950);
    
    ctx_el = new_cortex(4000, 20,20, 840,840);

    sl_ws = guilib_add_element(&slider, NULL, 40,930, 70,15);
    sl_ws->title = "weighted sum";

    sl_mn = guilib_add_element(&slider, NULL, 140,930, 70,15);
    sl_mn->title = "mean";

    sl_sd = guilib_add_element(&slider, NULL, 240,930, 70,15);
    sl_sd->title = "std dev";

    sl_nr = guilib_add_element(&slider, NULL, 340,930, 70,15);
    sl_nr->title = "normed";
} // kmf_interface
Example #3
0
int main(int argc, char *argv[])
{
	framebuffer = (unsigned char *)malloc(guilib_framebuffer_size());

	initscr();
	keypad(stdscr, TRUE);
	noecho();
	cbreak();
	scrollok(stdscr, TRUE);
	idlok(stdscr, TRUE);

	start_color();
	init_pair(1, COLOR_WHITE, COLOR_BLACK);
	init_pair(2, COLOR_RED, COLOR_BLACK);
	init_pair(3, COLOR_YELLOW, COLOR_BLACK);

	wikilib_init();
	guilib_init();
	wikilib_run();

	/* never reached */
	return 0;
}