All pastes #160143 Raw Edit

Someone

public c v1 · immutable
·published 2006-09-03 21:58 UTC
rendered paste body
#include <ncursesw/ncurses.h>#include <ncursesw/panel.h>#include <glib.h>static gbooleandoit(PANEL *panel){	static int x = 0, y = 0;	move_panel(panel, y, x++);	update_panels();	doupdate();	return TRUE;}int main(){	WINDOW *one, *two, *three;	PANEL *pone, *ptwo, *pthree;	initscr();	noecho();	one = newwin(24, 40, 0, 0);	two = newwin(20, 65, 0, 0);	three = newwin(14, 50, 0, 0);	pone = new_panel(one);	ptwo = new_panel(two);	pthree = new_panel(three);	box(one, 0, 0);	box(two, 0, 0);	box(three, 0, 0);	update_panels();	doupdate();	g_type_init();	g_timeout_add(500, doit, pone);	GMainLoop *loop;	loop = g_main_loop_new(NULL, FALSE);	g_main_loop_run(loop);	endwin();		return 0;}