void WikilibThread::run() { wikilib_init(); guilib_init(); wikilib_run(); }
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; }